NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2118 most downloaded on Packagist
PHP class to re-size and scale images
Last release today
06 Oct 2026
Release timing varies
gaps range from 1 weeks to 1.5 years
Rarely documented
notes for 2 of 41 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
41 releases · first in 2014
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).
One column per quarter.
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).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
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
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
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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →