PHP code example of razor / thumbnailer

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

    

razor / thumbnailer example snippets


		$thumbnailer = $this->getServiceLocator()->get('Thumbnailer');
		$thumbnailer->open('\path\to\image.png');
		$thumbnailer->resize(400);
		$thumbnailer->save('\path\to\image_resized.png');
 

curl -s http://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit