Dear list, we encountered some problems generating thumbnail JPGs from PDF-files. Unfortunately the PDFs are slightly incorrect IMHO:
----- <</MediaBox [ 0 0 751.18 1003.45996 ] /CropBox [ 0 0 751.18 1003.45996 ] ----- instead of ----- /MediaBox [ 0 0 595 842 ] ----- So the size of the first example ist not recognised correctly using convert although the JPG got the right size: ----- $ convert -verbose 1.pdf 3.jpg "gs" -q -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g612x792" "-r72x72" "-sOutputFile=/tmp/magick-XXFIKoXW" "-f/tmp/magick-XXMcQfxF" "-f/tmp/magick-XXNBuXso" /tmp/magick-XXFIKoXW PNM 612x792 612x792+0+0 DirectClass 8-bit 1.38681mb 1.pdf PDF 612x792 612x792+0+0 DirectClass 16-bit 1.38681mb "gs" -q -dBATCH -dSAFER -dNOPAUSE -sDEVICE="jpeg" -sOutputFile="/tmp/magick-XXVy4wS9" -f"/tmp/magick-XXFaxElN" ------ $ identify 3.jpg 3.jpg JPEG 751x1003 751x1003+0+0 DirectClass 8-bit 101.1kb ------ We have to resize the JPG an this breaks all up: ------ $ convert -verbose -scale 150x150 1.pdf 3.jpg "gs" -q -dQUIET -dSAFER -dPARANOIDSAFE -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g612x792" "-r72x72" "-sOutputFile=/tmp/magick-XXFShoQL" "-f/tmp/magick-XXe7dHbe" "-f/tmp/magick-XX9s62SG" /tmp/magick-XXFShoQL PNM 612x792 612x792+0+0 DirectClass 8-bit 1.38681mb 1.pdf PDF 612x792 612x792+0+0 DirectClass 16-bit 1.38681mb 1.pdf=>3.jpg PDF 612x792=>116x150 116x150+0+0 DirectClass 16-bit 18.0059kb $ identify 3.jpg 3.jpg JPEG 116x150 116x150+0+0 DirectClass 8-bit 18.0059kb ------ this leads to a file with the wrong trimming. We're using Gentoo-Linux. An the problem appears with any ImageMagick-Version we have installed. ImageMagick 6.3.3 04/18/07 Q16 http://www.imagemagick.org ImageMagick 6.3.0 02/01/07 Q16 http://www.imagemagick.org and some 6.1.x.x I already messed aroung with delegates.xml without luck. Any help would be appreciated. If you need one of the PDF files just let me know to provide a download link. Kind regards, -- Rüdiger Kern Systemadministration Tel: +49-931-880755-90 fidion GmbH Friedrich-Bergius-Ring 15 http://www.fidion.de/ 97076 Würzburg _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
