Registry / utility / spatie-image

spatie-image

JSON →
library3.9.4phppackagistunverified

Manipulate images with an expressive API

composer require spatie/image
INSTALL
IMPORT
SIG · SPATIE-IMAGE
S
spatie-image
utilityphpv3.9.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Image
use Spatie\Image\Image;

Resize and save an image

use Spatie\Image\Image; $image = Image::load('input.jpg'); $image->width(500)->height(300)->save('output.jpg');
Debug
Known issues
breakingRequires GD or Imagick extension.
fix
Install php-gd or php-imagick extension.
affects: >=3.0.0
Upgrade
Version history
3.9.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
spatie-image — pip install spatie-image · libregistry