JPG to PDF conversion

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
bnuske
Posts: 2
Joined: 2012-02-28T16:59:17-07:00
Authentication code: 8675308

JPG to PDF conversion

Post by bnuske »

I am using the windows static binary version 6.7.5-Q16 and found that converting a JPG to PDF produced a grayscale image in the PDF even though the JPG was color.

I ran the following commands:

convert.exe -size 100x100 xc:red red.jpg
convert.exe red.jpg -format pdf red.pdf

I tried this in an older version 6.6.5-Q16 and it worked ok.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPG to PDF conversion

Post by fmw42 »

This works fine for me in IM 6.7.5.7 Q16 Mac OSX Snow Leopard.

convert -size 100x100 xc:red red.jpg
convert red.jpg red.pdf

Note that -format jpg, I believe is only needed for mogrify and not convert.
bnuske
Posts: 2
Joined: 2012-02-28T16:59:17-07:00
Authentication code: 8675308

Re: JPG to PDF conversion

Post by bnuske »

I have just downloaded:
- Portable Win32 static at 16 bits-per-pixel
- Win32 static at 16 bits-per-pixel

From:
- http://www.imagemagick.org/script/binary-releases.php

Both produce the grayscale PDF even without specifying the -format option.

I am running on Windows 7. Perhaps it is something specific to the Windows build?
Post Reply