1. Go to this page and download the library: Download tunaqui/picresize 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/ */
tunaqui / picresize example snippets
php
$image = new \Tunaqui\PicResize\Picture();
$image->download('http://nisleen.com/images/logo.png');
$image->save('../download/');
php
$image = new \Tunaqui\PicResize\PictureResize('http://nisleen.com/images/logo.png', '../download/');
$image->resize(150, 150);
echo $image->response();
php
$img = new \Tunaqui\PicResize\PictureResize('../download/logo.png');
$img->thumbnail(100);
$img->show();
php
$img = new \Tunaqui\PicResize\PictureResize('../download/logo.png');
$img->thumbnail(100);
$img->saveNewSize();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.