On 9/23/2010 4:07 AM, Wolfgang Hugemann wrote:
> Hello,
>
> I combined a bunch of JPEGs to a PDF via
>
> convert *.jpg JPEGs.pdf
>
> BTW: Filename globbing via wildcards works perfect on my Windows computer, in 
> contrast to the documentation 
> http://www.imagemagick.org/script/command-line-processing.php which claims 
> this to function only for UNIX shells (?).

Is it Windows or convert that is expanding your glob for you?  In that 
same directory, try

echo *.jpg

and see how many files are listed.

> However, when I extracted the files losslessly from the PDF with the help of 
> PDFimages (http://www.foolabs.com/xpdf/download.html), the JPEGs were slighty 
> different from the originals. They report the same dimensions and 
> JPEG-quality, but they don't have exactly the same size.

So is the difference in the image blob, or in the EXIF tags (which might 
get stripped on the way in to the PDF?)?  How different is the size (a 
few bytes? 10%? or ?)?

> I suspect that ImageMagick somehow re-encoded the JPEGs before it wrapped 
> them into the PDF.

You might be right, because IM tends to decompress images to full 
bitmaps before doing pretty much anything to them.

> Is there a way to tell ImageMagick to leave the JPEGs as they are and just to 
> wrap them into a PDF?
>
> Wolfgang Hugemann


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to