webvimark/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 2014-07-02 07:33 UTC

This package is auto-updated.

Last update: 2024-10-29 03:36:54 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 webvimark/image "*"

or add

"webvimark/image": "*"

to the require section of your composer.json file.

Configuration

In your config/web.php

	'modules'=>[
		...

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

		...
	],

In you config/console.php

	...

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

	...

Include your desired modules in config/console.php

Usage

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