![]() |
#46 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How about just keeping the images the same size they are?
|
![]() |
![]() |
![]() |
#47 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
GIF images in MobIPocket very definitely have a 64KB limit (actually slightly smaller than 64 KB) and I assumed that this was a PRC record size limit. If a GIF image is larger than ~64 KB, mobigen.exe, reduces its size (in pixels) until it fits in 64KB.
I don't know if larger JPEGs are allowed, or if MobiPocket just increases the lossyness(?) until it also fits in 64 KB. See Images in MobiPocket, which includes references to MobiPocket documentation and to other threads on this issue. Last edited by wallcraft; 11-28-2007 at 05:27 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
![]() |
![]() |
![]() |
#49 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
There is a version 0.02 available at http://www.ida.liu.se/~tompe/mobiperl/
Table of contents and links works. You had to change href to a filepos to get it to work on the Gen3. |
![]() |
![]() |
![]() |
#50 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I took a look at my (DRM-free) LIT files converted to MOBI via ConvertLIT and mobigen.exe -jpeg. Any JPEG that was originally larger than 64 KB was reduced to less than 64 KB in the MOBI file, but the image dimensions in pixels was maintained. So I think it is the case that MOBI only allows images < 64 KB.
|
![]() |
![]() |
Advert | |
|
![]() |
#51 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#52 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#53 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Yes, although many JPEGs are already smaller than 64 KB, and so far the examples I have seen don't look bad at 64 KB. For GIF images, MobiPocket instead makes the image itself smaller until it fits in 64 KB (which is a different loss in quality, arguably much worse). MobiPocket's primary legacy issue is the Palm format, but Plucker uses PDB and it allows larger images by splitting them across multiple records.
|
![]() |
![]() |
![]() |
#54 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Do you have any good example lit file with a large image? |
|
![]() |
![]() |
![]() |
#55 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I also have a lit file which had a 600x800 cover image but this image was not in the manifest so mobigen will fail to us the bigger image and you will get the small image. My script searches the unpacked files for a big cover image and uses that even if it is not in the manifest. You can also specify on the command line a file to use as cover image.
|
![]() |
![]() |
![]() |
#56 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I will probably let my script use large files and print warnings that the file will not work on some devices and have a flag to generate mobi files with records with a max size of 64 KB. |
|
![]() |
![]() |
![]() |
#57 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
No, it's a consequence of the fact that the image has to fit into 64k. It's not really a terribly onerous limit for the type of images you tend to get in eBooks - they are generally under 64k anyway.
|
![]() |
![]() |
![]() |
#58 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#59 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
No, it was the first record after the compressed text that was to large. Then there were 6 records with smaller images after that. When I try to load this on my palm it says "corrupt database".
|
![]() |
![]() |
![]() |
#60 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Version 0.03 is now available.
I have fixed so that all records are smaller than 64K. I resize the image data by choosing a suitable jpeg quality. If I find a real example were the image quality becomes too bad I will try to find a solution. So if anybody have a real example of a lit file where mobigen -jpeg fails to produce something that you can read I would really like to have a pointer to it. The guide table of content now works so in FBReader I get the table of content button. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
html2mobi - html formatting | brunovg | Kindle Formats | 2 | 12-13-2009 05:56 AM |
Old Version Mobigen needed | wilko10 | Kindle Formats | 11 | 11-25-2008 08:10 PM |
Does someone still have Mobigen 6.01 build 37? | IceHand | Kindle Formats | 7 | 03-03-2008 05:04 PM |
lit2mobi written in Perl working | tompe | Bookeen | 7 | 01-19-2008 01:06 PM |
MobiPocket TOC using mobigen | wallcraft | Reading and Management | 4 | 12-07-2007 09:45 AM |