I can't find any documentation for this.
I have found examples in the image magick documentation which use a colon but nothing explicit about how the colon is interpreted.
The examples are confusing ;
magick -size 640x480 pattern:checkerboard checkerboard.png
suggests it sets the attribute on the left (pattern) to the value on the right (checkerboard)
but then
magick -size 640x480 -depth 8 rgb:image image.png
suggests it sets file type of image - the thing on the right - to what is left of it
EDIT
This was all just a brain fart on my part; I was thinking (for various reasons) of "image" as a thing being made/assigned rgb which makes no sense (as "image" is a file name / input parameter).
The sensible interpretation is obviously of rgb as a thing (image of type rgb) being assigned the info in the file "image" .
So from these two examples at least, it appears the colon just assigns/applies the right hand operand to the left hand operand as you would expect.
There are a couple of ways the colon is used.
Some options which create their own canvas have a colon, for example:
xc:
creates a canvasgradient:colourA-colourB
creates a gradient from colourA to colourBtile:
creates a repeated tileradial-gradient:
creates a radial gradientrose:
creates the built-in rose imagepattern:
for a built-in pattern as you sawlogo:
for the ImageMagick logolabel:
for text labelscaption:
for text captionsThen the colon sometimes prefixes a filename to tell ImageMagick what is in it. This is your rgb:
use case, and it is necessary because the filename doesn't happen to end in .rgb
. Other examples of this are:
gray:
when the greyscale input file doesn't end in .gray
tif:fd:5
read a TIFF from file descriptor 5Or to tell it to write a specific variant of a file, e.g.:
PNG8:
to write a palettised PNGPNG24:
to write an RGB888 PNGPNG32:
to write an RGBA8888 PNG with alphaPTIF:
to write a pyramid TIFFBMP3:
to write a version 3 Microsoft BMP filefd:3
write output on file descriptor 3gif:fd:4
write output as GIF on file descriptor 4There is some documentation here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With