ResizlyResize photos

The complete rule, field by field

A rule is evaluated against every queued source. A match produces one planned output; several matching rules deliberately produce several outputs. Nothing later in the pipeline quietly changes the rule.

Match and transform

Rule inputs
FieldMeaningImportant boundary
Matcherall files or a filename glob, optionally landscape, portrait or square onlyempty glob means all
Excepta second glob that removes files the matcher let in"**/raw/**" skips a raw folder
Source formatJPEG, PNG, WebP, HEIC, GIF, TIFF or SVG, read from the bytesnone ticked means any
Transparencyonly files whose header declares an alpha channel, or only those withoutread for PNG and WebP
Size testlong edge, short edge, width or height at least or under a number of pixelsan unmeasured file never matches
File sizeover or under a number of megabytes
Stop after this targeta matched file is not offered to the targets belowone output per file, chosen by shape
Targetmax width, max height, long edge, short edge, box, percentage (1–400), print size (cm, mm or in at a DPI) or exact (distorts)integer output pixels
Fitcontain, cover (Fill), pad or insidecover may crop; pad never does
Focal pointwhere a cover crop centres, as a fraction of the picture; the nine anchors are its shortcutsignored when nothing crops
Zoomcover only: crop tighter than the largest window the shape allows1 to 4
Paddingpad only: white, black, transparent, the picture's edge colour or any colourJPEG writes transparent as its background colour
Safe areamargins drawn on the previewnever changes a pixel
Enlargepermit output above source dimensions; Lanczos-3, or AI detail on this deviceoff by default; AI detail up to 1 MP sources
Turn and mirrorquarter turns and a left-right or top-bottom mirror, after the EXIF orientationthe box is fitted to the turned picture
DPRmultiply requested dimensionsalso available in names

Encode and name

Output fields
FieldMeaningBoundary
Formatsource, JPEG, PNG, WebP, AVIF or GIFunsupported source output becomes PNG; an animated GIF stays GIF
Palette PNGPNG reduced to at most 256 coloursPNG only
Sharpenlight or medium unsharp mask on outputs made smalleroff by default
Copyright and artistcopies those two EXIF fields from a JPEG sourceJPEG to JPEG only; nothing else is copied
Qualitylossy encoder targetignored by PNG
At most / at least, KBa byte ceiling and floor; quality is searched, then the size stepped down 10% up to three times1 KB is 1,024 bytes; never padded
DPIwritten into JPEG (JFIF and EXIF) and PNG (pHYs)WebP, AVIF and GIF have no DPI field
Background colourJPEG only: what transparent pixels becomewhite by default
Resamplingthe browser's high-quality scaler, or Lanczos-3 computed in codeLanczos is the same in every browser and slower
Templatepath and filename tokensliteral slash makes a ZIP folder
Collisionsuffix, overwrite or stopchecked in the plan
Archiveflat, a folder per target, a folder per platform, or the source folders mirroreddoes not alter names inside rules
Groupthe platform a target belongs to; fills {group}custom when empty

For token details use the /reference/naming page. For a rule stack that can be edited immediately, open /recipes; the file a recipe is saved as is specified on /reference/recipe-format.

Photographic visual for Rules

Rules

Choose photos