PDF in 300 DPI from jpeg, it is possible ?

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PDF in 300 DPI from jpeg, it is possible ?

Post by fmw42 »

the convert syntax has the input image right after convert. have you tried

convert file.jpg -density 300 file.pdf
grankin

Re: PDF in 300 DPI from jpeg, it is possible ?

Post by grankin »

I think my problem is on similar lines, but has to do with a bounding box problem that seems to be generated when a jpeg is converted to pdf.

my situation exactly is this:

I have a 300 dpi jpeg that is 5400 pixels by 3600 pixels (so 18 inches X 12 inches) that I need to convert to a pdf file - our client's printing company requires the file in pdf form.

When i do:

Code: Select all

convert image.jpg final.pdf
the resulting pdf loads fine in adobe reader, but the printing company reported that there was a large bounding box problem. on their end they are using adobe acrobat professional to open the pdf and go to tools->print production->crop pages, and what they see is a pdf that would print out on 75 inches by 50 inches with the final image down in the bottom left corner.

Frustrated, i did a little math and found that 5400 pixels / 72 pixels per inch = 75 inches, which may explain the odd sizing problem, but not why the image is down in the bottom left corner.

I also tried changing the command to take density into account:

Code: Select all

convert image.jpg -density 300 final.pdf
Unfortunately this did not seem to change anything. the pdf was still 75 inches wide. I've also tried explicitly specifying the page size by adding -page 5400x3600 but that does not seem to have any effect.

I've heard of other people having this issue, but have not been able to find a satisfactory solution. one suggestion was to convert the image to postscript first and have ps2pdf turn the postscript file into a pdf. unfortunately i ended up with a pdf that (1) had tons of nasty jpeg compression artifacts, (2) used a standard 8.5 inch X 11 inch page (cropped my 18 inch x 12 inch image), and (3) ignored or lost the color profile i was applying to the image (the printing company supplied an ICC file that was getting applied just fine to my pdf when using image magick but with the sizing issue it is unsatisfactory to them)

I would greatly appreciate some help or a suggestion to overcoming this problem. our client does not want to pay the printing company to crop the pdf before they print it and due to my lack of experience in these matters I have run out of options.
Post Reply