Multicrop2 是我的脚本。有效的 ImageMagick 颜色是 ImageMagick 可识别的任何配色方案,例如 rgb、hex、cmyk、hsl,甚至是其文档中指定格式的颜色名称,尤其是在 http://www.imagemagick.org/script/color.php 中指定的格式。我的脚本中有太多无法列出。我经常提到这个链接,但显然在这种情况下我没有。但大多数 ImageMagick 用户都知道其典型的配色方案。 ImageMagick 用户大多知道 IM 是 ImageMagick 的缩写。颜色大部分遵循 CSS 样式指南。带有#、空格或括号的颜色需要被引用,至少在类 Unix 系统上是这样。颜色名称不需要引用。向我的脚本和 ImageMagick 的新手道歉。
例子:
rgb(255, 0, 0) range 0 - 255
rgba(255, 0, 0, 1.0) the same, with an explicit alpha value
rgb(100%, 0%, 0%) range 0.0% - 100.0%
rgba(100%, 0%, 0%, 1.0) the same, with an explicit alpha value
#ff0000 #rrggbb
#ff0000ff #rrggbbaa
gray50 near mid gray
gray(127) near mid gray
gray(50%) mid gray
graya(50%, 0.5) semi-transparent mid gray
hsb(120, 100%, 100%) full green in hsb
hsba(120, 100%, 100%, 1.0) the same, with an alpha value of 1.0
hsb(120, 255, 255) full green in hsb
hsba(120, 255, 255, 1.0) the same, with an alpha value of 1.0
hsl(120, 100%, 50%) full green in hsl
hsla(120, 100%, 50%, 1.0) the same, with an alpha value of 1.0
hsl(120, 255, 127.5) full green in hsl
hsla(120, 255, 127.5, 1.0) the same, with an alpha value of 1.0
cielab(62.253188, 23.950124, 48.410653)
icc-color(cmyk, 0.11, 0.48, 0.83, 0.00) cymk
icc-color(rgb, 1, 0, 0) linear rgb
icc-color(rgb, red) linear rgb
icc-color(lineargray, 0.5) linear gray
icc-color(srgb, 1, 0, 0) non-linear rgb
icc-color(srgb, red) non-linear rgb
icc-color(gray, 0.5) non-linear gray