Skip to content

imgproxy

Media Servers

Fast and secure standalone server for resizing and converting remote images.

Go Latest v4.0.3 · 13d ago Security brief →

Features

  • On‑the‑fly image resizing, cropping, rotation, watermarking and format conversion (JPEG, PNG, GIF, WebP, AVIF, JPEG XL)
  • Security‑focused design – imgproxy fetches source images and serves processed results without exposing your application’s internals
  • Drop‑in replacement for in‑app image‑processing code; generate URLs with processing options instead of calling libraries or CLI tools

Recent releases

View all 8 releases →
No immediate action
v4.0.3 Bugfix

Cache key generation fix

No immediate action
v4.0.2 Breaking risk

Deadlock fix

Config change
v4.0.0 Breaking risk

Internal cache + new features

v3.31.1 Bugfix

Fixed memory leak when saving HEIC/AVIF images with an alpha channel.

Changelog

Fixed

  • Fix memory leak when saving HEIC/AVIF images with alpha channel.
v3.31.0 Breaking risk
⚠ Upgrade required
  • -keypath → IMGPROXY_KEY, -saltpath → IMGPROXY_SALT (use environment variables)
  • -presets → IMGPROXY_PRESETS_PATH (environment variable)
  • (pro) -info-presets → IMGPROXY_INFO_PRESETS_PATH (environment variable)
Breaking changes
  • IMGPROXY_FAIL_ON_DEPRECATION when true causes imgproxy to exit with a fatal error on any deprecated config option usage
  • -keypath, -saltpath, and -presets CLI arguments are deprecated (use environment variables instead)
  • (pro) DarkNet object detection model support is deprecated; use ONNX format
Notable features
  • flip processing option
  • IMGPROXY_PRESETS_PATH config
  • (pro) avif_options processing option
Full changelog

Added

Changed

  • For security reasons, imgproxy now accepts only service account keys for Google Cloud Storage integration and Google Cloud Secret Manager integration.
  • When image source responds with a 4xx status code, imgproxy now responds with the same status code instead of always responding with 404 Not Found.
  • When image source responds with a 5xx status code, imgproxy now responds with 502 Bad Gateway instead of 500 Internal Server Error.
  • Remove iframe elements from SVGs during sanitization.

Fixed

  • Fix crop coordinates calculation when the image has an EXIF orientation different from 1 and the rotate processing option is used.
  • Fix responding with 404 when a GCS bucket or object is missing.
  • Fix handling : encoded as %3A in processing/info options.
  • (pro) Fix memory leak in ML features.
  • (pro) Fix generating video thumbnails when the server doesn't include the Accept-Ranges header in the response but includes the Content-Range: bytes ... header.
  • (pro) Fix watermark_size processing option behavior when one of the dimensions is zero.

Deprecated

  • Deprecate -keypath and -saltpath CLI arguments. Use IMGPROXY_KEY and IMGPROXY_SALT environment variables instead.
  • Deprecate -presets CLI argument. Use IMGPROXY_PRESETS_PATH environment variable instead.
  • (pro) Deprecate -info-presets CLI argument. Use IMGPROXY_INFO_PRESETS_PATH environment variable instead.
  • (pro) Deprecate support for object detection models in DarkNet format. Use ONNX format instead.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
10,811
Forks
750
Languages
Go C HTML

Community & Support

Beta — feedback welcome: [email protected]