Converting 72 dpi to 300 dpi

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
boxfan

Converting 72 dpi to 300 dpi

Post by boxfan »

Hi,

I'm new to IM and image manipulation but here is what I am trying to do.

I have a jpg at 72 dpi and I need to convert to 300 dpi for print. Is this possible? I have read that I can increase the size of the image by 4.166 and then change to 300 dpi which would resize the image back to its original size but I can't see how that would make the image 300 dpi print quality. Wouldn't the quality be the same as the original?

Is this possible?

Thanks in advance!!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting 72 dpi to 300 dpi

Post by fmw42 »

convert image.jpg -density 300 newimage.jpg

see http://www.imagemagick.org/script/comma ... hp#density
boxfan

Re: Converting 72 dpi to 300 dpi

Post by boxfan »

Yeah, the problem with just converting is the image print size is significantly smaller. I need the new 300 dpi image to be the same print size.

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting 72 dpi to 300 dpi

Post by fmw42 »

I don't use this much, but try -resample rather than -density.

see http://www.imagemagick.org/script/comma ... p#resample
boxfan

Re: Converting 72 dpi to 300 dpi

Post by boxfan »

Cool. I actually stumbled onto that and it created the image in the correct print size with a DPI of 300. Now we're taking it to the printer to see what the print quality is.

Thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Converting 72 dpi to 300 dpi

Post by anthony »

Just remember that -resample is a resize operator with density adjustment. It resizes the image (number of pixels) so that the image appears to be the same size at the new given density.
http://www.imagemagick.org/Usage/resize/#resample

Of course the IM resize command is extremely good, especially in enlargements, but different filters can also control the quality of the results, but also may need some trial and error or expert help to get right.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply