Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-11-2012, 07:32 PM   #1
shandrakor
Junior Member
shandrakor began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: ipad
Converting to HTMLZ, two copies of cover?

All my htmlz conversions are ending up with two copies of the cover image file, one in the root as cover.jpg, the other in the images subdirectory as 0001.jpg.

Is this by design? Is there any way to avoid it? "Ignore first image" doesn't do it.
shandrakor is offline   Reply With Quote
Old 04-11-2012, 11:40 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,094
Karma: 780247
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
In it's internal file store Calibre always stores a cover.jog. This is in addition to whatever is sorted inside any particular eBook file. This is done as many ebook formats do not support string the cover image, and calibre stores all formats for a given book in the same folder. The cover.jpg file is the one used in the calibre GUI. It need not be the same as the cover image stored inside any particular eBook file.

You cannot change this behaviour. However since you are not meant to be accessing the internals of the calibre library directly this should not concern you.
itimpi is offline   Reply With Quote
 
Advertisement
Old 04-12-2012, 01:00 AM   #3
shandrakor
Junior Member
shandrakor began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: ipad
What's looking in the library got to do with it? When creating an htmlz file, it includes both versions of the cover jpg. It's still there after doing a "save to disk" of the htmlz file.
shandrakor is offline   Reply With Quote
Old 04-12-2012, 02:24 AM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,094
Karma: 780247
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
If you do a save to disk, then whether the cover.jpg gets saved as well as a separate file is optional (as is the .opf file).
itimpi is offline   Reply With Quote
Old 04-12-2012, 08:58 AM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,091
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
HTMLZ has no way of knowing that 0001.jpg is a cover. Unlike EPUB, there is no defined 'reference' section (in the content.opf) to consult.

I will assume that 'remove first image' applie to the Location of usage in the HTML and not its filename or position in a file list.
theducks is online now   Reply With Quote
Old 04-12-2012, 02:32 PM   #6
shandrakor
Junior Member
shandrakor began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: ipad
Quote:
Originally Posted by itimpi View Post
If you do a save to disk, then whether the cover.jpg gets saved as well as a separate file is optional (as is the .opf file).
I'm clearly not conveying my issue well. It is optional to save copy of the cover and opf when doing a save to disk _in addition to all exported formats_. I'm not talking about a loose jpg. I'm talking about the contents of the created htmlz file.

The purpose of htmlz was to export a single, flat html file for editing more easily than the contents of an epub. But in addition to that, calibre is including parts of its internal library structure in the archive--specifically, the cover.jpg file.

If I export an epub, only one jpg is included. If I export to mobi, the file size suggests that only one copy of the jpg is included. But if I export to htmlz, it includes both the "cover according to the epub" file and the "cover according to calibre" file, even if those files are identical.

Quote:
Originally Posted by theducks
HTMLZ has no way of knowing that 0001.jpg is a cover. Unlike EPUB, there is no defined 'reference' section (in the content.opf) to consult.
True, but that should only be an issue when importing from htmlz. When creating the htmlz in the first place (converting from epub or mobi) calibre does know whether the referenced file is a cover.
shandrakor is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keep cover picture when converting several ebooks HiRsch Conversion 1 04-01-2012 01:54 AM
HTMLZ Ortep Calibre 21 05-09-2011 11:27 PM
blank page for cover after converting crestfalleen Calibre 2 06-03-2010 01:08 PM
DR800 Converting a planner to a cover The Straven iRex 0 05-02-2010 01:04 AM
Problems with Cover Images after converting NASCARaddicted Calibre 7 05-06-2009 04:14 AM


All times are GMT -4. The time now is 01:34 PM.


MobileRead.com is a privately owned, operated and funded community.