yii2-image
Image extension for Yii2, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require 'andreosoft/yii2-image', (*4)
or add, (*5)
"andreosoft/yii2-image": "*", (*6)
to the require section of your composer.json
file., (*7)
Usage
Once the extension is installed, simply use it in your code by :, (*8)
...., (*9)
\Yii::getAlias('@root'),
'webroot' => 'http://mysite.com/uploads',
'quality' => 50,
];
echo Image::thumb('test-image.jpg', 120, 120)
?>