View Full Version : Mobiperl Is the cover included twice?


Jellby
12-20-2008, 11:26 AM
When creating a mobipocket book with html2mobi (using "--coverimage Cover.jpg", I notice the output on the screen shows two lines belonging to Cover.jpg. This, and the filesize (with a big cover and short text), makes me think the cover is somehow being included twice in the output file. Is this so? Can it be avoided? (I'm using version 0.0.41 of mobiperl).

tompe
12-20-2008, 11:56 AM
When creating a mobipocket book with html2mobi (using "--coverimage Cover.jpg", I notice the output on the screen shows two lines belonging to Cover.jpg. This, and the filesize (with a big cover and short text), makes me think the cover is somehow being included twice in the output file. Is this so? Can it be avoided? (I'm using version 0.0.41 of mobiperl).

I think this happens. I think is is duplicated because the cover image is used as the thumb image if --addthumbimage is not used. And it was much simpler and less error prone to just duplicate the image.

Jellby
12-20-2008, 12:40 PM
I think this happens. I think is is duplicated because the cover image is used as the thumb image if --addthumbimage is not used. And it was much simpler and less error prone to just duplicate the image.

It makes sense. The filesize is reduced and the output on the screen is consistent if I use "--addthumbnail thumb.gif" (not --addthumbimage). What is the thumbnail used for, anyway? Does the Cybook use it for the library view? What is the recommended size for the thumbnail?

PS. If you manage to deal with ticket #37 (https://dev.mobileread.com/trac/mobiperl/ticket/37), that should also avoid the duplicated cover, I guess.

tompe
12-20-2008, 07:47 PM
PS. If you manage to deal with ticket #37 (https://dev.mobileread.com/trac/mobiperl/ticket/37), that should also avoid the duplicated cover, I guess.

Yes, I suppose so. I think you need the thumb nail to get the cover displayed in some program (maybe the Windows programs for MobiPocket). I seem to remember adding the functionality because there was a need for it.