There is no license information available for the latest version (v2.0.0) of this package.

Kohana image lib wrapper for yii 2

v2.0.0 2023-02-08 11:49 UTC

This package is auto-updated.

Last update: 2024-05-08 17:29:49 UTC


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 uzzielpelawak/image "*"

or add

"uzzielpelawak/image": "*"

to the require section of your composer.json file.

Configuration

In your config/web.php

	'modules'=>[
		...

		'migrations'=>[
			'class'=>'uzzielpelawak\modules\migrations\MigrationModule'
		],

		...
	],

In you config/console.php

	...

	'controllerMap'=>[
		'migrate'=>[
			'class'=>'uzzielpelawak\modules\migrations\components\MigrateController',
		],
	],

	...

Include your desired modules in config/console.php

Usage

\uzzielpelawak\image\Image::factory($pathFromFile)->resize(500, 300)->save($pathToFile);