Resolution change

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
sikaniska

Resolution change

Post by sikaniska »

Hi,

I am new to IM so sorry if this is too easy for you. :D

I would like to change resolution in a image file to 220 ppi. But I would like to do it in a way that doesn't change the image data. I also need the image not to change it's filename.

I tried

Code: Select all

convert -density 220 image.jpg image.jpg
but that results in repackaged jpg.

Is there a way to just change the resolution info without touching the image data?

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

Re: Resolution change

Post by fmw42 »

I don't believe that you can do that with IM. You will need to find some other tool.
sikaniska

Re: Resolution change

Post by sikaniska »

Ok. Thanks for the info.

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

Re: Resolution change

Post by anthony »

You could try other more format specific tools, like jhead
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply