Graphics “a”是什么;有效的IM颜色;?

Graphics “a”是什么;有效的IM颜色;?,graphics,colors,imagemagick,color-codes,Graphics,Colors,Imagemagick,Color Codes,我在一个bash脚本中找到了以下文档,该脚本是为与一些名为“”的软件一起使用而编写的 我无法理解代码作者认为什么是“有效的IM颜色”。我猜“IM”只是“图像”的缩写,但可能是“即时消息”或其他意思。你觉得怎么样 < > RGB的十六进制代码在下位字节中有蓝色,中间字节为绿色,上部字节为红色,但不确定它们是否使用标准的RGB编码颜色。 OutoRP2是我的脚本。有效的ImageMagick颜色是ImageMagick识别的任何颜色方案,例如rgb、hex、cmyk、hsl,甚至是文档中指定格式的颜

我在一个
bash
脚本中找到了以下文档,该脚本是为与一些名为“”的软件一起使用而编写的

我无法理解代码作者认为什么是“有效的IM颜色”。我猜“IM”只是“图像”的缩写,但可能是“即时消息”或其他意思。你觉得怎么样


< > RGB的十六进制代码在下位字节中有蓝色,中间字节为绿色,上部字节为红色,但不确定它们是否使用标准的RGB编码颜色。

OutoRP2是我的脚本。有效的ImageMagick颜色是ImageMagick识别的任何颜色方案,例如rgb、hex、cmyk、hsl,甚至是文档中指定格式的颜色名称,尤其是在。我的脚本中列出的内容太多了。我经常提到这个链接,但显然在这个例子中我没有。但大多数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
IM=imagemagick,与任何有效的图像Magick颜色相同。它有文档,你可以通过via找到,也可以告诉你一些名为“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