1. Go to this page and download the library: Download hrevert/ht-img-module 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/ */
hrevert / ht-img-module example snippets
return [
'htimg' => [
'filters' => [
'my_thumbnail' => [ // this is filter service
'type' => 'thumbnail', // this is a filter loader
'options' => [ // filter loader passes these options to a Filter which manipulates the image
'width' => 100,
'height' => 100,
'format' => 'jpeg' // format is optional and defaults to the format of given image
]
]
]
]
];