Manipulating Print / Document Size Issue

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
markurxn

Manipulating Print / Document Size Issue

Post by markurxn »

I am trying to create a .5 x .5 inch thumbnail with Imagemagick. Theres a huge quality difference between what I am doing in Imagemagick versus what I can do in Photoshop. I'm new to image manipulation, so I could be missing a step. The image attached illustrates the steps I'm taking for each method and it shows the resulting image.

In Imagemagick, I'm cropping / resizing while keeping the dpi at 300. What I'm not able to do is set the document size. My command looks like:

convert -density 300 -thumbnail 120 -crop 50x40+55+15 input.jpg output.png

In Photoshop, using the crop tool, I can set the print size and crop to 150 pixels wide at 300 dpi.

It looks to me like its a document / print size issue. Any ideas?

Image
http://64.182.1.86/gd3/shrinkingquality.jpg

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

Re: Manipulating Print / Document Size Issue

Post by fmw42 »

Take a look at -resample http://www.imagemagick.org/script/comma ... p#resample and http://www.imagemagick.org/Usage/resize/#resample

I am no expert at this kind of thing, and I will defer to the experts, but I think this may be what you need.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Manipulating Print / Document Size Issue

Post by anthony »

You are just enlarging a small image using IMageMagick.

You need to crop and resize the image with regard to the final 'density' you are using for output. IM defaults to a 72 dpi density
whcih is reasonable for displays, but horible for printouts!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply