Hello, I am trying to add a script to our pre-processing regimen that uses the imagemagick tools to automatically resize images that are too large for the PDFs we generate eg:
convert -resize ${NEW_WIDTH}x $FILE $FILE
for files that are too wide. After resizing a file it looks fine when
viewed in any image viewer. However, when included in a fop'd xslfo
file the version in the pdf looks... strange, like a bad photocopy.
I've attached an unchanged and a resized image for the adventurous.
Try including them both in a document and see if you get the same
result.
From everything I can tell, the resized image is a normal png, but if
I perform the same resize in eg Gimp, the resulting file looks a little fuzzy in the pdf but is otherwise fine. So obviously ImageMagick is doing something to the png that other viewers are ok with, but not fop. On a probably related note, look how much bigger the imagemagick'd file is than the original (27k vs <1b, in case this list strips attachments)! Does anyone have any insight into what's going on here? I'm on FC6 using fop-0.91beta-2 and ImageMagick-6.2.8.0 if that's relevant. --Brad
test-orig.png
Description: PNG image
test-resized.png
Description: PNG image
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
