views:

42

answers:

2

I have an image on my server which I know the dpi of and if it's too high I want to size it down to 72 I still want to keep the same height and width of the image. Any ideas?

I've played around with -resample -units and -density but don't seem to be getting anywhere and can't find any answers. Anyone out there that can help

A: 

If you know the target dpi and the width/height (in pixels) then you can just resize the image that meets those targets.

zaf
+1  A: 

According to this using density should work

Unreason
Yeah thanks I found it in the end
Richard Housham
For completeness sake you could give an answer yourself and describe what was the issue and how you solved it.
Unreason
I'm usually pretty good at reading the manual, but I can't get this to work. Can you provide an example syntax?
Kevin Buchan
@Kevin, can you reopen the question and describe your problem in detail? As stated (I have checked) the linked solution works. Without further data I can not guess what is wrong at your side (short of retype error or maybe ImageMagick version issue)
Unreason