PHP code example of znframework / package-image
1. Go to this page and download the library: Download znframework/package-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/ */
znframework / package-image example snippets
N::run();
$thumbPath = Thumb::path('images/wallpaper.jpg')
->quality(80)
->crop(100, 200)
->resize(300, 200)
->create();
echo Html::image($thumbPath);