PHP code example of amphibee / thumbnail-on-demand

1. Go to this page and download the library: Download amphibee/thumbnail-on-demand 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/ */

    

amphibee / thumbnail-on-demand example snippets


define('IMAGE_RESIZER_CLASS', 'MyCustomImageResizer');

add_filter('tod/', 'large'];
});

add_filter('tod/exclude_thumbnail_sizes', function ($sizes) {
return ['small', 'thumbnail'];
});

define('IMAGE_RESIZER_CLASS', 'MyCustomImageResizer');

add_filter('tod/', 'large'];
});

add_filter('tod/exclude_thumbnail_sizes', function ($sizes) {
return ['small', 'thumbnail'];
});