Imgix Compatibility

Parameter mappings for moving Imgix image URLs to Small Pics.

← Back to docs

Enable the Imgix compatibility for any of your configured image sources which might require Imgix parameters.

Parameter Compatibility

ImgixSmall PicsSupportedNotes
ararAccepts width:height or decimal ratios, for example 16:9 or 3.1667.
bgbg
borderborder
padborderMaps to border=<pad>,<bg>,shrink. If bg isn't set, then the background is transparent.
bribri
concon
cropfit, crop🟠See mapping table below.
dprdprSmall Pics max is 8, Imgix max is 5.
faceindexface🟠With fit=facearea. Accepts positive face numbers; ordering may differ from Imgix.
facepad🔴Unsupported.
fitfitSee mapping table below.
flipfliphv in Imgix is mapped to both in Small Pics
fmfm🟠Small Pics supports: avif, webp, jpg, pjpg, png, gif, jxl.
gamgamSee gamma value mapping below.
hh🟢Pixels pass through. Fractions map to percentages: h=0.5h=50p.
markmark🟠Small Pics only supports relative URLs. Images can be in different sources.
mark-alphamarkalpha
mark-padmarkpadImgix defaults to 5px.
mark-alignmarkposComma-separated positioning. Both default to bottom-right. See mapping below.
mark-hmarkhRelative positioning maps to <value>h, for example 0.1 becomes 10h.
mark-wmarkwRelative positioning maps to <value>w, for example 0.1 becomes 10w.
mark-xmarkpad, markposSets x from the left edge. Relative values map to w, for example 0.1 becomes 10w.
mark-ymarkpad, markposSets y from the top edge. Relative values map to h, for example 0.1 becomes 10h.
mark-fitmarkfitSee mapping table below.
orientorImgix uses EXIF values or degrees. See mapping below.
qq
sharpsharp
ww🟢Pixels pass through. Fractions map to percentages: w=0.65w=65p.

Value Mappings

Small Pics uses p for axis-relative percentages, w for width, and h for height. Imgix fractional inputs still map to w or h as listed above.

fit values

ImgixSmall Pics
clip (default)contain (default)
maxmax
fillmaxfill
fillfill-max
scalestretch
clampcrop
faceareazoom=facesarea (without faceindex)
min❌ Not supported

When crop is "focalpoint" and fit is "crop"

fp-x and fp-y select the focal point, and fp-z sets the zoom. For example, fp-x=0.5&fp-y=0.5&fp-z=1.5 is equivalent to fit=crop&fp=50w:50h&zoom=1.5.

Without fp-z, this example is equivalent to fit=crop&fp=50w:50h.

When crop is set

Maps to fit=crop&crop=<position>

ImgixSmall Pics
topfit=crop&crop=top
bottomfit=crop&crop=bottom
leftfit=crop&crop=left
rightfit=crop&crop=right
left,topfit=crop&crop=top-left
bottom,leftfit=crop&crop=bottom-left
right,topfit=crop&crop=top-right
bottom,rightfit=crop&crop=bottom-right

Face cropping

ImgixSmall Pics
fit=crop&crop=facesfit=crop&crop=face
fit=crop&crop=faces,topfit=crop&crop=face,top
fit=crop&crop=faces,top,leftfit=crop&crop=face,top-left
fit=faceareazoom=facesarea
fit=facearea&faceindex=2face=2&zoom=face
fit=facearea,fillfit=fill-max&zoom=facesarea
fit=facearea,crop&crop=topfit=crop&crop=top&zoom=facesarea

crop=faces centers the crop on one face without zooming in. With no face, it uses a centered crop. Put faces first when adding a directional fallback; corner pairs work in either order. Unsupported fallbacks, including entropy, edges, and focalpoint, use a centered crop.

fit=facearea frames all detected faces. Add faceindex to select one face. Its fallback can be clip, max, fillmax, fill, scale, clamp, or crop. With no supported fallback, it uses contain when no matching face is found.

If the group cannot fit, the crop centers on the box around all faces. Some faces may fall outside the crop. See frame all faces.

Face detection and ordering can differ from Imgix. faceindex only applies to facearea and uses the native face index rules. Empty or invalid values select the first face; leaving it out selects the group.

facepad is unsupported and ignored. Its multiplier does not map directly to zoompad, which uses pixels or percentages of the output dimensions.

markfit values

ImgixSmall Pics
clip (default)contain (default)
maxmax
cropcrop
scalestretch

gam (gamma) mapping

ImgixSmall Pics
1 to 1000.1 to < 1.0
-1 to -1001.0 to 9.9

or (orientation) mapping

Small Pics doesn't support EXIF values, instead the values are mapped to Small Pics or and flip parameters.

ImgixOrientationFlip
2-h
3 or 180180-
4-v
590h
6 or 270270-
790v
8 or 9090-
default / 00-

Watermark offsets

mark-x and mark-y map to the x and y values in markpad=x:y. Each supplied offset overrides alignment and padding on that axis. The other axis keeps its alignment and uses mark-pad, which defaults to 5.

For example, mark-x=12&mark-y=0.2 maps to markpos=top-left&markpad=12:20h.

mark-align=right,bottom&mark-x=12 maps to markpos=bottom-left&markpad=12:5.

mark-align to markpos mapping

ImgixSmall Pics
toptop-right
middleright
bottombottom-right
leftbottom-left
centerbottom
rightbottom-right
left,toptop-left
left,middleleft
bottom,leftbottom-left
center,toptop
center,middlecenter
bottom,centerbottom
right,toptop-right
middle,rightright
bottom,rightbottom-right

Frequently asked questions

Can I switch from Imgix to Small Pics without changing my URLs?
Yes. Enable Imgix compatibility mode on your Small Pics image source and most existing Imgix URLs work without changes. Small Pics translates Imgix query parameters to their equivalents server-side.
Which Imgix parameters does Small Pics support?
Small Pics supports most core Imgix parameters: w, h, dpr, fit, crop, fp-x, fp-y, fm, q, sharp, bri, con, gam, flip, orient, bg, border, pad, and the full set of watermark parameters (mark, mark-alpha, mark-pad, mark-align, mark-h, mark-w, mark-x, mark-y, mark-fit).
Which Imgix parameters are NOT supported?
fit=facearea and fit=min are not supported. Relative sizes for w and h are not yet supported. The mark parameter only supports relative URLs. All other core transform parameters are covered.
How do I enable Imgix compatibility mode?
In the Small Pics dashboard, open your image source settings and enable Imgix compatibility. Once enabled, any request using Imgix query parameters is automatically translated.
Does any other image service offer Imgix parameter compatibility?
Gumlet offers partial Imgix API compatibility. Built-in Imgix parameter translation is uncommon: most major providers (Cloudinary, ImageKit, Cloudflare Images, Bunny, ImageBoss) do not offer it.
Can I use Imgix compatibility mode with the Imager X plugin?
You can, but you do not need to. The Imager X transformer plugin uses native Small Pics parameters directly. Imgix compatibility mode is most useful for sites that have Imgix URLs hardcoded in templates, a CMS, or a database.