Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2008, 05:32 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Image management in mobiperl

Hello,

After using html2mobi/mobi2html for some time, it seems to me that:

a) Only GIF or JPG images can be included in a mobipocket file, images in any other format are converted to JPG by html2mobi.

b) If the same image is referenced multiple times in an HTML file, it is also included multiple times in the generated mobipocket file.

Am I right? Is it not possible to include PNG images, for instance? Could the html2mobi program be modified to include each image only once?
Jellby is offline   Reply With Quote
Old 09-13-2008, 06:07 AM   #2
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Jellby View Post
a) Only GIF or JPG images can be included in a mobipocket file, images in any other format are converted to JPG by html2mobi.
If you can point me to a specification of which formats can be included in a MobiPocket file then these formats can be added. Actually all images that are not PNG and smaller than 61K are included as they are. PNG images or images bigger than 61K are converted to jpg. At least this the case in the latest version. I do not remember why PNG images are converted but I assume it is because they did not work on some viewer.

Quote:
b) If the same image is referenced multiple times in an HTML file, it is also included multiple times in the generated mobipocket file.
That sounds like lazy programming... I have added a ticket for it.
tompe is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobiperl Mobiperl - Perl tools for handling MobiPocket files tompe Kindle Formats 890 01-17-2021 06:16 PM
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools Jad Kindle Formats 476 03-15-2015 05:51 PM
MobiPerl is making me CrAzY! bonzodog Writers' Corner 5 09-01-2010 02:50 PM
MobiPerl: LIT2MOBI page breaks don't work =X= Kindle Formats 7 11-13-2008 11:08 AM
Mobiperl mobiperl for dummies? etitameh Kindle Formats 19 07-14-2008 06:57 PM


All times are GMT -4. The time now is 05:27 AM.


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