![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2015
Device: generic ereader
|
How to offer epub on website question
Hi, I'm this question has been ask before but I can't seem to find the answer.
I have been able to convert the book into files formats epub and opf using Calibre. I want to put a link on my web site offering the free book. How if I just offer the epub file as a download then the file will not open correct for others. I assume they need the opf file also. How do I convert or set up the book so it can be offered as a download on my web site. Thank you very much for any help Kimberly |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
EPUB is the book If it will not open with an EPUB viewer, the book is not a valid EPUB. Is the question 'How to flag a file as a Download' vs 'open in place'? (Your Webmaster should know how to do this as a download) |
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,069
Karma: 12500000
Join Date: Aug 2013
Location: Okanagan
Device: Sony PRS-650, Kobo Clara
|
The opf file is metadata for Calibre, isn't it? It doesn't need to be provided along with the epub for download.
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
The 'BookName.epub' is a zip file so if you rename the .epub part to .zip you can look at the 'innards' The metadata.opf file is actually one of the files that is zipped into a single epub file so it's already there. I understand that there can be differences between the OPF in the caliber folder and the OPF in the epub. I think it has to do with editing the metadata with Calibre and as opposed to actually editing the book (at least that's my experience, but I'm sure the more experienced members will jump in with a better explanation) There is a very nice plugin called 'Modify epub' that will actually incorporate the Calibre cover and metadata into the epub file, as well as make other changes an cleanups. |
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@phossler - AFAIK the metadata.opf file in a book folder only serves one purpose - as a backup of the what's in the metadata.db database. My understanding is that it's only read by the Library Maintenance->Restore database function.
Any similarities between its content and similarly named components inside an ePub are coincidental. The book editor can be used independently without the presence of any calibre libraries. Mentally, I rename the metadata.opf files in the book folders to calibre.metabak, and turn on the Hidden and Read only attributes ![]() BR |
![]() |
![]() |
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I'm really don't know the ins and outs of Calibre or epub-ing so I'll gladly defer to the more knowledgeable members
I was only saying I thought there could be a difference between the metadata in the folder's OPF file and the OPF file in the epub based on what I read in the help file for the Modify ePub plug in: Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
@BetterRed, not strictly true.
![]() @phossler, that refers to the EPUB manifest. It is true that Polish will update the manifest with the same data as the external opf, but that is a coincidence, a byproduct of the fact that that external opf is a backup copy of the metadata in the database. In other words, Polish does not read from the external opf. ![]() IMHO it distracts from the issue to discuss the differences between the metadata in calibre and in the EPUB itself. That does NOT touch upon the OP's concern, which is that the EPUB might not open. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,525
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Do you also have to ensure the correct mime-type for the .epub file?
|
![]() |
![]() |
![]() |
#9 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Rewrites of the metadata.opf files occur in the background, depending on the number of books affected by a given change that can take a long time - as in hours. @eschwartz - I had a suspicion that one or more of the Add books options might use it, but I wasn't sure under what circumstances - I add all books via a shell Send To->Autoadd. Quote:
![]() BR Last edited by BetterRed; 01-08-2015 at 06:46 PM. |
||
![]() |
![]() |
![]() |
#10 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
Corruption can be severe or very minor. Frequently the source is a mis-configured web site that doesn't associate the proper MIME-type with the ePub file format. This can lead the downloading app/browser to make a mistake. Quote:
To avoid confusion, most users should disable/uncheck the "Save metadata in a separate OPF file" in the Prefs>Save to Disk panel. Then, when you use Save to Disk to extract an eBook for use outside of calibre you don't get the extra file. Checking the "Save cover separately" option, though, can be a handy way to get a cover image for use on the web site. One should always use Save to Disk rather than probing into the calibre's library folder tree manually. |
||
![]() |
![]() |
![]() |
#11 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2015
Device: generic ereader
|
Thanks to everyone for your help. I learned a lot.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
'My Library' on Kobo website question | AnemicOak | Kobo Reader | 2 | 01-25-2013 11:23 AM |
probably a stupid question, but...how do I search My Library online on B&N website? | sufue | Barnes & Noble NOOK | 2 | 12-25-2012 04:47 PM |
Open question: Can you purchase a Kindle book off of a website? | Russell Brooks | Amazon Kindle | 4 | 11-20-2010 03:04 PM |
Question about selling ebooks via your website | Steven Lake | Writers' Corner | 42 | 09-23-2010 10:22 PM |
PDF to Word Converter - Free at vendor's website [OFFER ENDED] | ac9ts | Deals and Resources (No Self-Promotion or Affiliate Links) | 10 | 02-07-2010 10:02 AM |