View Full Version : Embedding JPGs larger than 64KB in .prc file


DairyKnight
09-10-2009, 02:41 AM
Hi all,

I'm developing a tool to rasterize PDF files, and convert them into .PRC
files along with the TOC for reading on Kindle DX. But now I'm having
problems with embedding JPG files into .prc files, which are more than 64KB.

As I'm experimenting, what I did was generate a .prc file with MobiCreator,
and replace the downscaled JPG with the original 1200x800 one.

The PRC was displayed find, but for large pictures, only the top part is
displayed on DX, the rest of it is all black.

My guess is that there's some certain record specifying the resolution of image, it was loaded correctly but only renders the upper part.

So could somebody help me out? I checked the wiki but there seems no information about it. Thanks.

DairyKnight
09-10-2009, 04:12 AM
Opps!! I made a horrible mistake by not changing the lockChunkID of the
following record, so that record was truncated and only the upper part of
the jpg was displayed...


I corrected that, and the PRC file showed beautifully on my Kindle DX. :iloveyou:

Jellby
09-10-2009, 05:02 AM
I think MobiCreator will still reduce the quality of the images to make them below 64 kB. If you don't want that, you can use MobiPerl or Calibre.

DairyKnight
09-21-2009, 03:19 AM
I'm using a c tool I developed myself... :cool:

I think MobiCreator will still reduce the quality of the images to make them below 64 kB. If you don't want that, you can use MobiPerl or Calibre.

nrapallo
10-08-2009, 09:02 PM
I'm using a c tool I developed myself... :cool:

Interesting! Any samples available?

BTW, how similar is this tool to PDFRead 1.8 (http://www.mobileread.com/forums/showthread.php?t=21906)? :)

DairyKnight
11-02-2009, 03:05 AM
Well for me, it's much better than PDFRead. It has a much more intuitive GUI
and has more parameters to tune the final PDF.

It support dual - cores to speed up PDF generation. (Now working on that...)

What's more it keeps the PDF TOCs for reading on Kindle. :cool:


Interesting! Any samples available?

BTW, how similar is this tool to PDFRead 1.8 (http://www.mobileread.com/forums/showthread.php?t=21906)? :)

nrapallo
11-02-2009, 05:29 PM
Well for me, it's much better than PDFRead. It has a much more intuitive GUI
and has more parameters to tune the final PDF.

It support dual - cores to speed up PDF generation. (Now working on that...)

What's more it keeps the PDF TOCs for reading on Kindle. :cool:

Any sneak peaks... :drool:

osnova
11-03-2009, 12:16 AM
I am also interested in this. So far, I have not been able to achieve satisfactory results with images in mobi/azw on the Kindle.

chorpler
12-14-2009, 02:46 AM
I'm definitely interested too.