我用 GIMP 创建了一条颜色曲线。它看起来像这样:
~/.gimp2.8/curves/selphy
Run Code Online (Sandbox Code Playgroud)
(只是第一行)
# GIMP curves tool settings
(time 0)
(channel value)
(curve
(curve-type smooth)
(n-points 17)
(points 34 0.000000 0.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 0.375000 0.490637 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 1.000000)
(n-samples 256)
(samples 256 .....
Run Code Online (Sandbox Code Playgroud)
我想用转换(ImageMagick)批量处理一些图像。
有没有办法使用这条曲线convert?
我曾经见过一个使用 imagemagick(1) 的以下方法的脚本。
这样,我们就得到了一个灰色渐变,将其输入 imagemagick 作为 lut aka。查找表。通过颜色通道应用它。
此外,gimp还附带了lisp函数gimp-curves-spline和gimp-curves-explicit,我们可以编写一些小程序并使用批量渲染引擎运行。curveloader包可以解析曲线文件格式。必要时请参阅手册。