PHP code example of mirko-pagliai / cakephp-thumber

1. Go to this page and download the library: Download mirko-pagliai/cakephp-thumber 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/ */

    

mirko-pagliai / cakephp-thumber example snippets


Configure::write('Thumber.driver', 'imagick');

Configure::write('Thumber.target', TMP . 'thumbs');

if (!getenv('THUMBER_DRIVER')) {
    putenv('THUMBER_DRIVER=imagick');
}

Configure::write('Thumber.driver', getenv('THUMBER_DRIVER'));