How can I use sips
, imagemagic
, or another tool to convert an image to black and white (grayscale) via the command line?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- CV2 Image Error: error: (-215:Assertion failed) !s
use one of:
-monochrome
or-colorspace gray
options forimagemagick
(convert
).If you have
imagemagick
installed,If you don't care about losing the original file:
mogrify -colorspace Gray file
.