1. 将单张图转换为灰度图
2、批量转换
说明:以上命令均需在DOS环境运行,其中使用convert命令前需安装ImageMagick。我喜欢使用其Portable版,解压后在环境变量里添加ImageMagick的路径后即可随处方便使用。
另:Linux下的批处理灰度图,可参考此文:Converting images to grayscale in Linux with ImageMagick
1. 将单张图转换为灰度图
2、批量转换
说明:以上命令均需在DOS环境运行,其中使用convert命令前需安装ImageMagick。我喜欢使用其Portable版,解压后在环境变量里添加ImageMagick的路径后即可随处方便使用。
另:Linux下的批处理灰度图,可参考此文:Converting images to grayscale in Linux with ImageMagick