Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Image Resize Laravel Package

gumlet/php-image-resize

Resize, scale, and crop images in PHP with a simple, typed API. Requires PHP 8.1+ with gd and fileinfo, supports files, data URLs, and binary strings, and handles enlargement limits and multiple crop modes.

View on GitHub
Deep Wiki
Context7
3.0.0

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).
2.1.3
2.1.2
2.1.0

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

2.0.4
2.0.3
2.0.2
2.0.0
  • Added support for WebP images
  • Dropped support for PHP 5.5
  • Fixed detected height being float in some case.
1.9.2
  • added ability to disable gamma correction
  • added ability to perform exact resize
  • minor fixes
1.9.1
1.9.0
1.8.0

This release has following changes

  • Dropped PHP version 5.3
  • Tests are re-written and code coverage reached to 86%
  • imageFlip function added for PHP 5.4 users

We thank @peter279k for contribution for this release.

1.7.0
1.6.8

Please check #93 and #91

1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
  • freecrop method added to crop at any position
  • added api docs and link for the same in README
  • minor improvements
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0

Image interlacing can now be enabled by doing $image->interlace = 1;.

1.3.0
  • createFromString method was added
  • Image can be retrieved as string by doing $image->getImageAsString(); or (string)$image
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
thomas-0816/doctrine-dbal-duckdb
moyisoft/laravel-admin
oxygen/mod-pages
oxygen/mod-import-export
oxygen/mod-media
ksoft/laravel-contentbuilderjs
ourgoldpackages/exchange
mikkimike/laravel-exchange1c
wandesnet/mercadopago-laravel
tsfcorp/email
larafony/core
laravel-enso/currencies
tartan/laravel-online-payment
gam/laravel-sat-catalogs
cloudcreativity/laravel-stripe
abdulelahragih/querybuilder
wedevbr/celcoin-laravel
surazdott/nepali-date
devsquad-cockpit/laravel
coding-socks/laravel-upload-handler