Releases: gumlet/php-image-resize
Releases · gumlet/php-image-resize
Release list
V3.0 - Fully typed public API
Added
- Full typed public API (parameters and return types on
ImageResize). - PHPStan (level 3) and PSR-12 (PHP-CS-Fixer) in development; CI static-analysis job.
- PHPUnit 10+ configuration migration; tests on PHP 8.2–8.5.
- Additional tests: missing file,
allow_enlarge,exact_sizesave, WebP/AVIF save, gamma save, stronger filter test.
Changed
- Minimum PHP version: 8.1 (
ext-gd,ext-fileinforequired). ImageResize::__construct()requiresstring $filename(non-empty path,data:URL, or valid file).save()documentsarray|false $exact_sizefor fixed canvas output.chmodafter save only when saving to a file path string.- Open
finfoonly whengetimagesize()fails (faster loads on success path).
Fixed
- BMP save no longer passes
nulltoimagebmp()(PHP 8.5 deprecation). - Removed
finfo_close()(deprecated in PHP 8.5). - Constructor no longer uses an invalid
returnstatement.
Removed
- Support for PHP versions below 8.1 (use
2.xreleases).
PHP 8.5 deprecations removed
2.1.3 php 8.5 added to unit tests
Fix float to int warnings
Merge pull request #199 from activated-insights/explicit-float-cast More Float to Int Casting
AVIF image support
This release adds support for AVIF image types.
We have also dropped support for PHP versions < 8.1.0.
Fix square image resize
2.0.4 Update php-testing.yml
Fix deperecated imagerotate parameter
Merge pull request #184 from pluc/master Replacing deprecated null parameter #3 of imagerotate() by 0
Fix warning in PHP 8
2.0.2 Merge pull request #181 from Internacionalweb/fixed-return-getcroppos…
WebP support added
- Added support for WebP images
- Dropped support for PHP 5.5
- Fixed detected height being float in some case.
Gamma correction option and ability to exact resize
- added ability to disable gamma correction
- added ability to perform exact resize
- minor fixes
Gamma correction applied for correct resize
1.9.1 Fix gamma correction