PHP code example of abwebdevelopers / oc-imageresize-plugin
1. Go to this page and download the library: Download abwebdevelopers/oc-imageresize-plugin 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/ */
abwebdevelopers / oc-imageresize-plugin example snippets
$resizer = new \ABWebDevelopers\ImageResize\Classes\Resizer($image);
$resizer->resize(800, 250, [
'rotate' => 45
]);
// $resizer->render(); // only use this if you intend on aborting the script immediately at this point