files
preview
original
result
convert to
which filter should I choose?
by what you are doing
- shrinking a photo
- Lanczos 3
- smallest file for the web
- Mitchell, or Gaussian if a soft look is fine
- text, logos, screenshots
- Catmull-Rom, or Box at exactly 50% or 25%
- enlarging a photo
- Lanczos 3 or Spline 36, Mitchell if edges show halos
- pixel art
- Nearest, at 200%
- not sure
- "compare all filters" tries them all on your photo
the filters
File sizes are against Lanczos 3, from shrinking three test photos with the same quality setting. Yours will differ, and a filter only saves bytes by keeping less detail.
the words
- halo
- A thin light or dark outline along a hard edge, from a filter sharpening as it resizes. Look for it at 100%.
- jagged edges
- Stair-steps and shimmer, from skipping pixels instead of blending them (aliasing). Nearest does this.
- linear light
- Mixes pixels as light rather than as stored numbers, so thin bright detail on dark, such as stars, city lights or light text, keeps its brightness. It also makes the dark side of halos much stronger, so use it with Mitchell or Hermite, not Lanczos or Catmull-Rom.
| filter | file size | match |
|---|
result
Runs entirely in your browser, with MozJPEG, libwebp, libavif and oxipng through jSquash, UTIF.js for TIFF, and libheif with libde265 for HEIC (LGPL 3.0, unmodified libheif-js). imagetracerjs traces into SVG (public domain), and resvg-js draws SVG in browsers that add noise to a canvas (MPL 2.0, unmodified). Each codec downloads only when it is needed.