2011-10-10 63 views

回答

118

如果您已經安裝imagemagick

convert source.jpg -colorspace Gray destination.jpg (true grayscale only) 
convert source.jpg -monochrome destination.jpg (true black and white) 
convert source.jpg -separate destination.jpg (separate into gray channels) 

如果你不關心丟失原始文件:mogrify -colorspace Gray file

10

使用imagemagickconvert)的-monochrome-colorspace gray選項之一。

相關問題