PHP code example of codeblog / thumbcropper

1. Go to this page and download the library: Download codeblog/thumbcropper 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/ */

    

codeblog / thumbcropper example snippets

 php
$Tim = new Thumb('images_cache');
echo $Tim->imgCreate('http://seusite.com/upload/images/imagem.png?w=250&h=500&a=b&zc=2');
ou
echo $Tim->imgCreate('upload/images/imagem.png?w=250&h=500&a=b&zc=2');

echo "<img src='{$Tim->imgCreate('http://seusite.com/upload/images/imagem.png?w=250&h=500&a=b&zc=2')}' alt='New Image' title='New Image'>";
echo "<img src='{$Tim->imgCreate('upload/images/imagem.png?w=250&h=500&a=b&zc=2')}' alt='New Image' title='New Image'>";