ybsisgood / image
Kohana image lib wrapper for yii 2
Installs: 52
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ybsisgood/image
README
Image manipulations (resize, crop, watermark, etc)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ybsisgood/image "*"
or add
"ybsisgood/image": "*"
to the require section of your composer.json
file.
Configuration
In your config/web.php
'modules'=>[ ... 'migrations'=>[ 'class'=>'ybsisgood\modules\migrations\MigrationModule' ], ... ],
In you config/console.php
... 'controllerMap'=>[ 'migrate'=>[ 'class'=>'ybsisgood\modules\migrations\components\MigrateController', ], ], ...
Include your desired modules in config/console.php
Usage
\ybsisgood\image\Image::factory($pathFromFile)->resize(500, 300)->save($pathToFile);