Yii 1.1: image-editor

Simple image editor for resizing, cropping and doing other elementary actions with images.
7 followers

ImageEditor is a wrapper of gd functions:

  • crop
  • resize
  • proportional resize

Installation

  • Composer package - wapmorgan/image-editor [1]
  • Latest release - 0.0.6 changelog
  • Development branch - dev-master

>>> Installation instructions. <<<

Requirements

  1. ext-gd

Usage

>>> RIGHT HERE. <<<

Resources

Changelog

v0.0.6: composer fixes and ImageEditor updates

  • Method saveToFile() marked as depricated. Now use save() method instead.
  • Added method tryCreateFromFile() which returns either an ImageEditor instance (on success) or null (on failure).
  • Fixed composer configuration (autoloading and requirements).

v0.0.5: instantiation from bmp files

  • Added function imagecreatefrombmp.
  • Some updates in saveToFile(): now you can use predefined constants like IMAGETYPE_XXX to specify output format.

v0.0.4: new class ImageEditorTools

  • Added ImageEditorTools.php with pHash() method.

v0.0.3: standalone using and composer.json

  • Added CComponent.php. ImageEditor loads it automatically so you can use ImageEditor without yii.
  • Added composer.json. Packagist name: wapmorgan/image-editor

v0.0.2: a lot of changes

  • allowing clone object.
  • returning $this in all methods.
  • cropSide renamed to decreaseSide.
  • added decreaseWidthTo(), decreaseHeighTo() and decreaseTo().
  • appendImageTo() finished.
  • rotate() fixed.
  • added gif and wbmp formats in saveToFile().
  • added mirroring functions: horizontalFlip() and verticalFlip().
  • added createFromResource static public method.
  • created testing script, added docs.

Composer

The preferred way to install this extension is through composer.

Either run:

$ php composer.phar require wapmorgan/image-editor "0.0.6"

or add:

"wapmorgan/image-editor": "0.0.6"

to the require section of your composer.json file.

Be the first person to leave a comment

Please to leave your comment.

Create extension