Releases: square1-io/resized-php
Releases · square1-io/resized-php
Release v1.3.0
Added support to php 8.0
Updated test to phpUnit 9.5
Release v1.2.0
Bump php minimum support to 7.2.
Release v1.1.1
Limit the length of the slug generated for the SEO portion of the URL to avoid exceeding S3 max file length.
Release v1.0.2
Update the noDefault image.
Release v1.0.1
If an invalid URL is passed to be processed instead of throwing an Exception it will know set the URL to default image.
Version 1 release
Usage
//Initialize and authenticate
$resized = new \Square1\Resized\Resized('key', 'secret');
//Override host if applicable
$resized->setHost('https://img.resized.co');
//Set the default failover image
$resized->setDefaultImage('http:/www.example.com/no-image.jpg');
//Process image resize with the parameters: ($url, $width, $height, $title)
$img = $resized->process('http://www.example.com/some-image.jpg', '100', '100', 'This is a title');