Retaining original DPI in convert command.
Posted: 2013-06-25T02:59:04-07:00
I am converting my image to grayscale using :
Though my image is 96dpi or 300dpi, my converted image is always 72dpi. How to retain the original dpi.
I don't know beforehand the dpi of the incoming image. (it varies from 72 to 300dpi).
Somebody pls help.
Code: Select all
convert test.jpg -recolor '0.2225 0.7169 0.0606 0.2225 0.7169 0.0606 0.2225 0.7169 0.0606' grayscale.jpg
I don't know beforehand the dpi of the incoming image. (it varies from 72 to 300dpi).
Somebody pls help.
