Suppose, I have to change resolution of an image file from 300dpi to 600dpi and "print size" of that image must shrink exactly twice. No interpolation needed!
How can one do that with ImageMagick ?
How to change resolution without resampling an image ?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to change resolution without resampling an image ?
use -density AFTER reading the image and before writing the image.
Hmmm prehaps that should be -set density
Not sure. Some programs ignore the normal image density setting, and only use density setting provided by profile info. photoshop comes to mind for this!
Hmmm prehaps that should be -set density
Not sure. Some programs ignore the normal image density setting, and only use density setting provided by profile info. photoshop comes to mind for this!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: How to change resolution without resampling an image ?
Yes, Antony, y're right. And why option -density does not work correctly, i.e. with these special profiles ? That's another question to IM authors...
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to change resolution without resampling an image ?
The problem is I believe is lack of information on the photoshop metadata profile.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/