PHP code example of muhammetsafak / image-manipulation
1. Go to this page and download the library: Download muhammetsafak/image-manipulation 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/ */
muhammetsafak / image-manipulation example snippets
$image = new \ImageManipulation\Image();
$image->setImage(__DIR__ . '/image.jpg');
$image->resize(300, 300);
// ... other operations
$image->save(__DIR__ . '/min_image.jpg');
$image->clean();