♻️ Effects & Filters

In this section we enumerate supported transformations such as resizing, optimizing, compression, changing format, cropping and changing hue. Other transformations can be passed directly as searchParams to the variation URL (not ideal, but 🤷)


Colorize, Blur, Sharpen

 

<zone>/blur=2/<source img>
📘 See documentation: "blur"
<zone>/sharp=3/<source img>
📘 See documentation: "sharp"
<zone>/con=7/<source img>
📘 See documentation: "con"
<zone>/hue=160/<source img>
📘 See documentation: "hue"
<zone>/mod=1.4/<source img>
📘 See documentation: "mod"
<zone>/sat=0.3/<source img>
📘 See documentation: "sat"
<zone>/gam=2/<source img>
<zone>/tint=red/<source img>
📘 See documentation: "tint"
<zone>/bg=19C/<source img>

Rotation, Flip, Flop

<zone>/flip/<source img>
📘 See documentation: "flip"
<zone>/flop/<source img>
📘 See documentation: "flop"
<zone>/ro=270/<source img>
📘 See documentation: "ro"

Filters

Filters are passed though the filt parameter. (See 🔗 Filter)

/filt=greyscale/
/filt=sepia/
/filt=negate/

Duotone filters have, by default, start=C83658 and stop=D8E74F.

default duotone
start=C60&stop=96F
start=06C&stop=0C6

Pages and Frames

Use the page parameter to skip as many pages when reading from a PDF or multipage TIFF. The n parameter means "output n pages". Using them in combination lets you pull a single page.

page=1, n=2n=2 (first two pages)page=2 n=1 (only page 1)
skip 1, yield the next 2yields first 2skip 2, yield 1 page
originalpage 1page 2

Example with TIFF images,

page=0 n=1page=1 n=1page=2 n=1
page 0page 1page 2

On animations (this example uses an animated gif), n limits the output to the first n frames. Also, applying the page parameter to it yields a funny effect.

original 24 frameslimit to 6 frames3 frameswtf is this? (page=2)
original5 frames3 framesoriginal

On multi resolution .ico files, the page parameter is used to pick a particular resolution on a (however it had a weird effect in the pig above)

page=1 72x72page=2 96x96page=3 128x128
original5 frames3 frames