♻️ 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
- blur: 🔗 Blur
- sharp: 🔗 Sharpen
- con: 🔗 Contrast
- hue: (0 to 360) 🔗 Hue Rotation
- mod: 🔗 Brightness
- sat: 🔗 Saturation
- gam: 🔗 Gamma
- bg: 🔗 Background Color
Rotation, Flip, Flop
Filters
Filters are passed though the filt
parameter. (See 🔗 Filter)
Duotone filters have, by default, start=C83658
and stop=D8E74F
.
Pages and Frames
- n: Number of Pages
- page: Page
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=2 | n=2 (first two pages) | page=2 n=1 (only page 1) |
---|---|---|
skip 1, yield the next 2 | yields first 2 | skip 2, yield 1 page |
Example with TIFF images,
page=0 n=1 | page=1 n=1 | page=2 n=1 |
---|---|---|
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 frames | limit to 6 frames | 3 frames | wtf is this? (page=2) |
---|---|---|---|
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 72x72 | page=2 96x96 | page=3 128x128 |
---|---|---|