ybsisgood / image
There is no license information available for the latest version (1.0.0) of this package.
Kohana image lib wrapper for yii 2
1.0.0
2024-04-25 04:06 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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);