imagemagick使用
A few years ago I bought a DSLR camera with a bunch of filter effects built in and it's been worth every penny. I took some incredible photos in London, Paris, and Jamaica, and tooks some really special photos of my son during his first few years. And many of my favorite photos were taken with grayscale filter but some I took in color and badly wanted them in grayscale. Of course I can use Photoshop to convert the image to grayscale but that's too much work. I have ImageMagick -- why not use the shell to very quickly convert it to grayscale?
几年前,我买了一台内置了很多滤镜效果的数码单反相机,这是物有所值的。 我在伦敦,巴黎和牙买加拍摄了一些令人难以置信的照片,并在儿子出生后的头几年里拍摄了一些非常特别的照片。 我最喜欢的许多照片都是使用灰度滤镜拍摄的,但是我有些是彩色的,并且非常想要灰度。 当然,我可以使用Photoshop将图像转换为灰度,但是这太繁琐了。 我有ImageMagick-为什么不使用外壳将其快速转换为灰度呢?
Converting the image to grayscale with ImageMagick is simple:
使用ImageMagick将图像转换为灰度很简单:
convert my-image.jpg -colorspace Gray my-image-gray.jpg
The command is self-explanatory and executes in milliseconds. And since Photoshop takes a few seconds to start and I have to do the work manually, ImageMagick makes everything so much easier.
该命令是不言自明的,并且以毫秒为单位执行。 由于Photoshop需要花费几秒钟来启动,而且我必须手动完成工作,因此ImageMagick使一切变得如此简单。
翻译自: https://davidwalsh.name/convert-image-grayscale-imagemagick
imagemagick使用