简体   繁体   English

如何在ImageMagick中更改亮度色调并部分饱和图像?

[英]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.

相关问题 我怎样才能使颜色均匀,以便在任何给定的色调和明暗度下都可以读取文字? - How can I even out colors so text is readable against them at any given hue and lightness? 如何更改图像的整体色调,类似于Photoshop的色调调整? - How can I change the overall hue of an image, akin to Photoshop's hue adjustment? 较少:色调,饱和度和亮度 - 如何使用? - LESS : hue, saturation and lightness - how to use? 可以在保留magmagick的色相的同时设置饱和度和亮度吗? - Can I set saturation and luminosity while preserving hue in imagemagick? 如何使用HSL(Hue Saturation Lightness)圆柱形颜色模型 - How to use the HSL (Hue Saturation Lightness) cylindric color model 如何仅通过几个部分以编程方式更改UIImage的色调? - How can I change hue of an UIImage programmatically only in few parts? 如何将HSL(色调,饱和度,亮度)转换为HSLum(色调,饱和度,亮度)和HSLum / RGB? - How to convert HSL (hue, saturation, lightness) to HSLum (hue, saturation, luminance) and HSLum/RGB? 如何使用jQuery更改颜色的亮度和饱和度? - How to change the color lightness and saturation using jQuery? 如何通过输入距离从所选颜色计算色相、饱和度和亮度值 - How to calculate Hue, Saturation and Lightness values from a chosen color by input distance 如何使用 imagemagick 将灰度图像转换为假色渐变 - How can I Convert grayscale image to false color gradient with imagemagick
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM