Changing DPI with resampling of an image

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
so0ly

Changing DPI with resampling of an image

Post by so0ly »

Hi,

I want to change the DPI of my image using imagemagick, now i found out this can be done by using -density. But as i understand it this will just edit the metadata (filesize remains the same) of the image and the DPI value will be used when printing (it's actually PPI i thought). If you change it it will make the print size larger. But what if i want to change the DPI with resampling (so that it keeps the same size and removes the extra pixels)? This way i will have a bit of quality loss but the filesize will be smaller.

I found the info about DPI and resampling here: http://www.andrewdaceyphotography.com/articles/dpi/

I'm not an expert in these things so it's possible that i'm wrong..

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

Re: Changing DPI with resampling of an image

Post by fmw42 »

Post Reply