Dimensions wrong on PDF to JPEG convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rforgo

Dimensions wrong on PDF to JPEG convert

Post by rforgo »

I've got IM 6.3.7 running on a W2K3 server with GS 8.6.1. I'm running the command (below) from a batch file. The conversion works, but the resulting JPEG is output in what looks like portrait mode, even though the PDF is in landscape. Any part of the image that is outside of the portrait boundaries is being cut off. I just want a simple conversion that retains the aspect of the original (albeit smaller). What am I missing here?

Here's the cmd line code:
"C:\Program Files\ImageMagick-6.3.7-Q16\convert.exe" "%WD_FILE%" -resize 20%% "%WD_FILE_D%%WD_FILE_B%.jpg"
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dimensions wrong on PDF to JPEG convert

Post by magick »

The problem appears to be specific to your PDF image. Can you post a URL here so we can download/inspect it and determine what the problem is?
rforgo

Re: Dimensions wrong on PDF to JPEG convert

Post by rforgo »

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dimensions wrong on PDF to JPEG convert

Post by magick »

We can reproduce the problem and have a patch for it in ImageMagick 6.3.7-5 Beta available within 72 hours. Thanks.
rforgo

Re: Dimensions wrong on PDF to JPEG convert

Post by rforgo »

Has this been posted yet? If so where can I find it.

Just out of curiosity, what was it about this PDF that made IM treat it this way?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dimensions wrong on PDF to JPEG convert

Post by magick »

Grab the latest release of ImageMagick. It should work properly with your PDF.
rforgo

Re: Dimensions wrong on PDF to JPEG convert

Post by rforgo »

Nope. Still printing in portrait mode. What now?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Dimensions wrong on PDF to JPEG convert

Post by magick »

Right, we updated the source but not the binaries. We'll try to get updated binaries out sometime tomorrow.
Post Reply