1. Go to this page and download the library: Download glaivepro/image 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/ */
glaivepro / image example snippets
$uri = GPImage::url('img/some-image.jpg', 120, 150);
// $uri is 'img/some-image-image(120x150).jpg'
$url = GPImage::asset('img/some-image.jpg', 120, 150);
// $url is 'https://example.com/img/some-image-image(120x150).jpg'
use GlaivePro\Image\Uri;
$uri = new Uri('pic.jpg');
$uri->size(20, 400);
(string) $uri; // 'pic-image(20x400).jpg'