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).
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