Available Transformations

As said in the routing section, Edge Resizer will handle requests whose pathname matches certain pattern.

The following transformations and shorthands individually or combined will work:

ParameterResulting Transformationexample
📑 Resize
w <zone>/w=250/<image source>
h <zone>/h=150/<image source>
we <zone>/we/<image source>
dpr <zone>/dpr=2/<image source>
ro <zone>/ro=45/<image source>
flip <zone>/flip/<image source>
flop <zone>/flop/<image source>
📑 Optimization/Conversion
il <zone>/il/<image source>
af <zone>/af/<image source>
q <zone>/q=80/<image source>
l <zone>/l=6/<image source>
n <zone>/n=0/<image source>
page <zone>/page=1/<image source>
output <zone>/output=png/<image source>
📑 Crop
cw <zone>/cw=200/<image source>
ch <zone>/ch=100/<image source>
cx <zone>/cx=10/<image source>
cy <zone>/cy=10/<image source>
a <zone>/a=center/<image source>
precrop <zone>/precrop/<image source>
cbg <zone>/cbg=AA00CC/<image source>
trim <zone>/trim/<image source>
📑 Filters
con <zone>/con=3/<image source>
bg <zone>/bg=CCAA00/<image source>
blur <zone>/blur=2/<image source>
filt <zone>/filt=sepia/<image source>
fit <zone>/fit=contain/<image source>
gam <zone>/gam=1/<image source>
hue <zone>/hue=180/<image source>
mod <zone>/mod=2/<image source>
sat <zone>/sat=50/<image source>
sharp <zone>/sharp=2/<image source>
tint <zone>/tint=red/<image source>

Alignment shorthands

🔳 Edge Resizer Features
Canonical formShort form
<zone>/a=top-left/<image source>
Shorthand
<zone>/top-left/<image source>
<zone>/a=top/<image source>
Shorthand
<zone>/top/<image source>
<zone>/a=top-right/<image source>
Shorthand
<zone>/top-right/<image source>
<zone>/a=left/<image source>
Shorthand
<zone>/left/<image source>
<zone>/a=center/<image source>
Shorthand
<zone>/center/<image source>
<zone>/a=right/<image source>
Shorthand
<zone>/right/<image source>
<zone>/a=bottom-left/<image source>
Shorthand
<zone>/bottom-left/<image source>
<zone>/a=bottom/<image source>
Shorthand
<zone>/bottom/<image source>
<zone>/a=bottom-right/<image source>
Shorthand
<zone>/bottom-right/<image source>

Fit shorthands

🔳 Edge Resizer Features
Every supported value for `fit` can also be passed in its shorthand form
Canonical formShort form
<zone>/fit=contain/<image source>
Shorthand
<zone>/contain/<image source>
<zone>/fit=cover/<image source>
Shorthand
<zone>/cover/<image source>
<zone>/fit=fill/<image source>
Shorthand
<zone>/fill/<image source>
<zone>/fit=inside/<image source>
Shorthand
<zone>/inside/<image source>
<zone>/fit=outside/<image source>
Shorthand
<zone>/outside/<image source>

Format shorthands

🔳 Edge Resizer Features
Canonical formShort form
<zone>/output=jpg/<image source>
Shorthand
<zone>/jpg/<image source>
<zone>/output=jpg/<image source>
Shorthand
<zone>/jpeg/<image source>
<zone>/output=png/<image source>
Shorthand
<zone>/png/<image source>
<zone>/output=tiff/<image source>
Shorthand
<zone>/tiff/<image source>
<zone>/output=gif/<image source>
Shorthand
<zone>/gif/<image source>
<zone>/output=webp/<image source>
Shorthand
<zone>/webp/<image source>
<zone>/output=webp (if supported)/<image source>
Shorthand
<zone>/auto/<image source>