Quote:
Originally Posted by scotty1024
OK, I dug into your actual PDF file and your image scaling is not correct.[..]You'd do much better to scale the image to a maximum height of 935 using Java's 2D as it has a much better scaling algorithm than the iLiad has at present.
|
so the actual available height is 935, and is the width is the full 768?
I've chosed to have the landscape mode as target, cause I don't have yet any idea of how much is readable a comic into standard mode
Quote:
Originally Posted by scotty1024
The iLiad grey values are: [..]I recommend a media box of 425 by 351.
|
Those are really valuable info, that should be into the FAQ
Quote:
Originally Posted by scotty1024
Based on the large size of the DCTStream I suspect you didn't actually convert the image to a gray scale bitmap in Java 2D, just reduced the colors to gray and left it in a RGB Bitmap. If you convert the image to a gray scale bitmap and feed it to the JPEG encoder you will produce a grey scale JPEG which is considerably smaller than a RGB JPEG as it doesn't need to compress the color space, just crunch down the luminous data.
|
this is something that is making me crazy...
this is the first time i'm doing "image manipulation" in java, but following the docs creating the image this way
image = new BufferedImage(width,height,BufferedImage.TYPE_BYTE _GRAY);
should allow the jpeg encoder to generate the grayscale jpeg, but actually it doesn't...
Quote:
Originally Posted by scotty1024
I personally recommend using http://www.pdfbox.org and I've posted various tools w/Java source here (despite libelous statements about my source code sharing habits made by another member here) that use that library so you can find examples of using it to create iLiad friendly PDF's.
|
I'll take a look
Thank you for your help
Cya