PHP code example of elmijo / php-image
1. Go to this page and download the library: Download elmijo/php-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/ */
elmijo / php-image example snippets
use PHPImage\PHPImage;
$image = new PHPImage('imagen.jpg');
$image->thumbnailImage(350,200);
$image->resizeImage(200,500);
$image->saveImage("nueva_imagen.jpg",100);
$image->saveImage("nueva_imagen.png",9,TRUE);
$image->saveImage("nueva_imagen.gif");