the composite blend operator used when applying this image. See Blend Modes at http://cairographics.org/operators.
The possibilties include :none, :multiply, :screen, :overlay, :darken, :lighten, :color_dodge, :color_burn, :hard_light, :soft_light, :difference, :exclusion, :hsl_hue, :hsl_saturation, :hsl_color, :hsl_luminosity. String versions of these options are accepted too.
The possibilties include: :none, :multiply, :screen, :overlay, :darken, :lighten, :color_dodge, :color_burn, :hard_light, :soft_light, :difference, :exclusion, :hsl_hue, :hsl_saturation, :hsl_color, :hsl_luminosity. String versions of these options are accepted too.
mask
default: ``nil``
Accepts a color (see :doc:`/colors`). If specified, the image will be used as a mask for the given color/gradient. Transparent pixels are ignored, opaque pixels are the given color. Note: the origin for gradient coordinates is at the given x,y, not at 0,0 as it is most other places.
placeholder
default: ``nil``
if ``file`` does not exist, but the file pointed to by this string does, then draw this image instead.
No warning is thrown when a placeholder is used.
If this is non-nil, but the placeholder file does not exist, then a warning is thrown and no image is drawn.
Examples of how to use placeholders are below.
..include:: /args/transform.rst
..include:: /args/range.rst
@ -47,3 +58,27 @@ mask
Examples
--------
These examples live here: https://github.com/andymeneely/squib/tree/dev/samples/images
file(s) to read in. As in :doc:`/arrays`, if this a single file, then it's use for every card in range. If the parameter is an Array of files, then each file is looked up for each card. If any of them are nil or '', nothing is done for that card.
By default, if ``file`` is not found, a warning is logged. This behavior can be configured in :doc:`/config`
..include:: /args/xy.rst
data
@ -65,6 +67,16 @@ mask
For implementation reasons, your vector image will be rasterized when mask is applied. If you use this with, say, PDF, the images will be embedded as rasters, not vectors.
placeholder
default: ``nil``
if ``file`` does not exist, but the file pointed to by this string does, then draw this image instead.
No warning is thrown when a placeholder is used.
If this is non-nil, but the placeholder file does not exist, then a warning is thrown and no image is drawn.
Examples of how to use placeholders are below.
crop_x
default: ``0``
@ -117,3 +129,27 @@ flip_vertical
Examples
--------
These examples live here: https://github.com/andymeneely/squib/tree/dev/samples/images