[英]How can I change lightness hue and partially desaturate an image in ImageMagick?
I have a PNG which (besides a white spot and transparency in the background) is a pretty straight blue. 我有一个PNG(除了白色斑点和背景透明性之外)是很直的蓝色。
I would like to use convert from ImageMagick to partially desaturate it, so that I can create images with the original blue at one extreme, and regular desaturation (I know that color theory allows a lot of desaturations, but I'm just looking for GIMP-style desaturation.) 我想使用从ImageMagick转换来对其进行部分去饱和,这样我就可以在一个极端的情况下创建具有原始蓝色的图像,并进行常规的去饱和(我知道色彩理论允许很多去饱和,但是我只是在寻找GIMP式去饱和。)
I would also like to lighten or darken the colors to an image. 我还想使图像的颜色变暗或变暗。
Lastly, I would like to change the hue for the bulk of the images, to anything on the hue scale. 最后,我想将大部分图像的色相更改为任何色相比例。 (The image is a saturated blue.)
(图像是饱和的蓝色。)
I can do all of these in GIMP but I am looking for a way to automate the process. 我可以在GIMP中完成所有这些操作,但是我正在寻找一种自动化过程的方法。 I also want to resize down, but that much was clearer from the docs.
我也想缩小尺寸,但是从文档中可以清楚地看出来。
How can I do these adjustments? 我该如何调整?
This might help. 这可能会有所帮助。 It uses this image as input - I am not so artistic and is a pretty literal interpretation of your teardrop image description...
它使用此图像作为输入-我不是那么艺术,是对您的泪滴图像描述的漂亮字面解释...
#!/bin/bash
for hue in $(seq 0 40 160); do
for sat in $(seq 20 40 100); do
convert -label "Sat:$sat,Hue:$hue" input.png -modulate 100,$sat,$hue miff:-
done
done | montage - -frame 5 -tile 3x m.png
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.