PHP code example of brabijan / images
1. Go to this page and download the library: Download brabijan/images 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/ */
brabijan / images example snippets
class BasePresenter extends Nette\Application\UI\Presenter {
use Brabijan\Images\TImagePipe;
}
/** @var Brabijan\Images\ImageStorage $imageStorage */
$imageStorage->upload($fileUpload); // saves to .../assetsDir/original/filename.jpg
$imageStorage->setNamespace("products")->upload($fileUpload); // saves to .../assetsDir/products/original/filename.jpg
$texy = new Texy;
$this->registerTexyMacros($texy);