PHP code example of tck / zf2-imageresizer
1. Go to this page and download the library: Download tck/zf2-imageresizer 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/ */
tck / zf2-imageresizer example snippets
return [
'modules' => ]
// ...
'TckImageResizer',
],
// ...
];
<img alt="Example image" src=" echo $this->resize('img/logo.jpg')->thumb(200, 160)->grayscale();
<img alt="Example image" src="/processed/img/logo.$thumb,200,160$grayscale.jpg" />