convert image 75 dpi to 300 dpi
Posted: 2011-03-08T09:21:31-07:00
helloo i want to convert 75 dpi image into 300 dpi.
is it possible using IM.
help me in regarding this
is it possible using IM.
help me in regarding this
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=18241
Code: Select all
convert -units PixelsPerInch image -density 300 resultimage
Code: Select all
convert -units PixelsPerInch image -resample 300 resultimage
Drarakel wrote:@Fred: I think you meant "-density"..
But a different order is recommended with current IM versions (so that it works for all images):The same with resample. If resampling to 300dpi is needed, use this:Code: Select all
convert -units PixelsPerInch image -density 300 resultimage
Code: Select all
convert -units PixelsPerInch image -resample 300 resultimage
No, not a bug - a feature. (Or rather: the special behaviour of the feature in "-units" that converts the density value.) But granted, not a well-documented one. I'll try to explain the small obstacles with that..fmw42 wrote:Under what conditions do you need to have -units first other than for vector images? This is new to me. Is it a bug?
Code: Select all
convert rose: -set units PixelsPerInch -density 75 rose1.png
convert rose1.png -density 300 -units PixelsPerInch rose2.jpg
Code: Select all
convert -units PixelsPerInch rose1.png -density 300 rose2b.jpg
Code: Select all
convert rose1.png -set units PixelsPerInch -density 300 rose2c.jpg
Code: Select all
convert -units PixelsPerInch rose1.png -resample 300 rose2d.jpg
You can request an enhancement on this the developers forum. But there is no guaranteed response time as the developers are very busy.Jimbo wrote: ↑2019-08-26T18:41:13-07:00 Just an FYI (and possibly a BUG), none of this dpi stuff works with EXR images. Yes, openEXR assures me that it supports dpi.
Have any of you tried changing the dpi of an EXR image? If you've successfully done it. I would love to see that convert call.
Thanks.
- Jimbo