Skip to content

Releases: gumlet/php-image-resize

V3.0 - Fully typed public API

Choose a tag to compare

@adityapatadia adityapatadia released this 22 Jul 12:02

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_size save, WebP/AVIF save, gamma save, stronger filter test.

Changed

  • Minimum PHP version: 8.1 (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.
  • Open finfo only when getimagesize() fails (faster loads on success path).

Fixed

  • BMP save no longer passes null to imagebmp() (PHP 8.5 deprecation).
  • Removed finfo_close() (deprecated in PHP 8.5).
  • Constructor no longer uses an invalid return statement.

Removed

  • Support for PHP versions below 8.1 (use 2.x releases).

PHP 8.5 deprecations removed

Choose a tag to compare

@adityapatadia adityapatadia released this 09 Jan 04:01
2.1.3

php 8.5 added to unit tests

Fix float to int warnings

Choose a tag to compare

@adityapatadia adityapatadia released this 12 Sep 08:05
4ab5e08
Merge pull request #199 from activated-insights/explicit-float-cast

More Float to Int Casting

AVIF image support

Choose a tag to compare

@adityapatadia adityapatadia released this 23 Apr 19:38

This release adds support for AVIF image types.
We have also dropped support for PHP versions < 8.1.0.

Fix square image resize

Choose a tag to compare

@adityapatadia adityapatadia released this 11 Oct 14:19
54165d9
2.0.4

Update php-testing.yml

Fix deperecated imagerotate parameter

Choose a tag to compare

@adityapatadia adityapatadia released this 21 Jun 16:21
aee4e25
Merge pull request #184 from pluc/master

Replacing deprecated null parameter #3 of imagerotate() by 0

Fix warning in PHP 8

Choose a tag to compare

@adityapatadia adityapatadia released this 12 May 11:04
39066a3
2.0.2

Merge pull request #181 from Internacionalweb/fixed-return-getcroppos…

WebP support added

Choose a tag to compare

@adityapatadia adityapatadia released this 04 Jul 21:07
  • 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

Choose a tag to compare

@adityapatadia adityapatadia released this 01 Jan 13:56
06339a9
  • added ability to disable gamma correction
  • added ability to perform exact resize
  • minor fixes

Gamma correction applied for correct resize

Choose a tag to compare

@adityapatadia adityapatadia released this 28 Jul 11:06
d36a7bc
1.9.1

Fix gamma correction