reimage / reimage
Create modified images from original image on the fly
dev-main
2022-01-04 16:34 UTC
Requires
- php: >=7.3
Requires (Dev)
- ext-imagick: *
- imagine/imagine: ^1.2
- intervention/image: 2.5.*
- league/flysystem: ^2.0
- phpstan/phpstan: 0.12.*
- phpunit/phpunit: ^9.3
Suggests
- imagine/imagine: One of supported Image manipulation library
- intervention/image: One of supported Image manipulation library
- league/flysystem: One of supported Filesystem library
This package is auto-updated.
Last update: 2024-04-04 21:54:37 UTC
README
About Reimage
Create modified images from original image on the fly.
Currently work in progress
Installing via Composer
composer require reimage/reimage
How does it work?
TODO
Requirements
The Reimage library has the following requirements:
- PHP 7.3 or PHP 7.4 or PHP 8.0
- One of the Image processing libraries:
- imagine/imagine (PHP 5.3+, Imagick 6.2.9+, GD 2.0+, Gmagick)
- intervention/image (PHP 5.4+, Imagick 6.5.7+, GD 2.0+)
Optional libraries
File system libraries:
- league/flysystem v2.0+ (AWS S3, FTP, SFTP, in memory)
Basic usage
$reimage = new Reimage(); $url = $reimage->createUrl('/my_image.jpg', [Reimage::WIDTH => 300, Reimage::HEIGHT => 200]); //Result: $url = '/my_image_fpA63N.jpg?w=300&h=200&s=4L1CZi'
Documentation
Read the documentation for more information.
Licence
See the LICENSE file.