NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2150 most downloaded on Packagist
PHP class to re-size and scale images
Latest stable
3.0.1
Last release 1 months ago
06 Oct 2026
Release timing varies
gaps range from 1 weeks to 1.5 years
Rarely documented
notes for 9 of 41 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
41 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
CWE-400 — Image bomb / uncontrolled resource consumption. __construct() now checks the source image pixel count (width × height) against the new $max_
__construct() now checks the source image pixel count (width × height)
against the new $max_source_pixels property (default 15,000,000)
before calling imagecreatefromXXX(). A 4,000 × 4,000 PNG that is
only ~56 KB on disk but requires ~61 MB of memory to decode is now rejected
immediately with ImageResizeException, so the fatal OOM error can no longer
kill a PHP-FPM worker. Set $resize->max_source_pixels = 0 to disable the
limit for fully trusted input.$max_source_pixels public property (default 15_000_000).BMP save no longer passes null to imagebmp() (PHP 8.5 deprecation).
ImageResize).allow_enlarge, exact_size save, WebP/AVIF save, gamma save, stronger filter test.ext-gd, ext-fileinfo required).ImageResize::__construct() requires string $filename (non-empty path, data: URL, or valid file).save() documents array|false $exact_size for fixed canvas output.chmod after save only when saving to a file path string.finfo only when getimagesize() fails (faster loads on success path).null to imagebmp() (PHP 8.5 deprecation).finfo_close() (deprecated in PHP 8.5).return statement.2.x releases).Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release adds support for AVIF image types. We have also dropped support for PHP versions < 8.1.0.
This release adds support for AVIF image types. We have also dropped support for PHP versions < 8.1.0.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed detected height being float in some case.
added ability to disable gamma correction
Nothing published for this version
Nothing published for this version
This release has following changes
This release has following changes
We thank @peter279k for contribution for this release.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
freecrop method added to crop at any position
freecrop method added to crop at any positionNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Image interlacing can now be enabled by doing $image->interlace = 1;.
Image interlacing can now be enabled by doing $image->interlace = 1;.
createFromString method was added
createFromString method was added$image->getImageAsString(); or (string)$imageNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.