PHP code example of io-developer / php-imagetransform

1. Go to this page and download the library: Download io-developer/php-imagetransform library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

io-developer / php-imagetransform example snippets




use iodev\Lib\ImageTransform\ImageTransformFactory;

ImageTransformFactory::create()
    ->inputFile("source.jpg")
    ->cropOuter(1280, 720)
    ->reduce(200, 200)
    ->exportFileWithInputFormat("output.jpg");