View Single Post
Old 01-16-2008, 08:55 PM   #8
delphidb96
Wizard
delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.
 
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
Quote:
Originally Posted by tompe View Post
I got the file and I have confirmed that it was the cover jpg (600x800) that caused the hanging. So I think that there is a bug in the jpg handling for certain jpg. I have seen jpg 600x800 that works.

Code:
mobi2mobi infile.prc --outfile fixedfile.mobi --fiximagesizes
can maybe fix the problem. There was a bug in mobi2mobi so it did not work on Linux in certain cases. I had to add a sleep(1) in mobi2mobi before the call that read the file.
Remember, the jpeg file can't be larger than 64K. So an 800 x 600 jpeg *could* with 12-bit color depth, be large enough, especially if there's a bunch of crappy EXIF info embedded, to exceed that. Could be that the jpeg was created at High or Maximum quality. If you extract it and re-compress with Medium quality - using Photoshop or PSP - that should make the file small enough.

Derek
delphidb96 is offline   Reply With Quote