Skip to content

Releases: square1-io/resized-php

Release v1.3.0

Choose a tag to compare

@GastonGelhorn GastonGelhorn released this 16 Sep 10:23
0f38a14

Added support to php 8.0
Updated test to phpUnit 9.5

Release v1.2.0

Choose a tag to compare

@conroyp conroyp released this 20 Oct 19:50
2b465b2

Bump php minimum support to 7.2.

Release v1.1.1

Choose a tag to compare

@conroyp conroyp released this 20 Oct 19:45
90aa383

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

Choose a tag to compare

@ciaranmaher ciaranmaher released this 28 Jul 11:57

Update the noDefault image.

Release v1.0.1

Choose a tag to compare

@ciaranmaher ciaranmaher released this 14 Mar 11:56

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

Choose a tag to compare

@ciaranmaher ciaranmaher released this 09 Mar 09:57

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');