Page 1 of 1

How to recognize that PNG is a monochrome image

Posted: 2016-04-18T01:46:15-07:00
by rishabh
Hello ,
I just wanted to know how to find out if PNG is monochrome or not? and how to convert any png to 1bit monochrome png.
Thanks

Re: How to recognize that PNG is a monochrome image

Posted: 2016-04-18T06:30:46-07:00
by snibgo

Code: Select all

identify %[colorspace] in.png
See documentation http://www.imagemagick.org/script/escape.php

There are many different methods to make an image into black and white only. One method is:

Code: Select all

convert in.png -colorspace Gray -threshold 50% out.png

Re: How to recognize that PNG is a monochrome image

Posted: 2016-04-18T11:19:11-07:00
by fmw42
Please always provide your IM version and platform, since syntax may differ.

Re: How to recognize that PNG is a monochrome image

Posted: 2016-04-26T21:50:27-07:00
by rishabh
Hello . Thank you for response I am using IM 6.6.6 version on wndows platform

Re: How to recognize that PNG is a monochrome image

Posted: 2016-04-26T23:45:05-07:00
by fmw42
6.6.6 is very old (over 250 versions old). Don't you think it is time to upgrade?