Thursday, 16 August 2018

linux - How to convert a photo to a black and white image by ImageMagick?


How can I convert a JPEG photo to black and white (not grayscale) image like output of a FAX scanner, by ImageMagick?



Answer



According to this forum post:


However, if you want two colors only (black and white), then you need to threshold. For example, to select the color where above will be white and below will be black.



convert -threshold xx%



where xx is in range 0-100 (for percent).


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...