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

  1. Installation
  2. Requirements
  3. Usage
  4. Resources
  5. Changelog
  6. Composer

ImageEditor is a wrapper of gd functions:

  • crop
  • resize
  • proportional resize


>>> Installation instructions. <<<


  1. ext-gd


>>> RIGHT HERE. <<<



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.


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.

3 1
1 301 downloads
Yii Version: 1.1
License: (not set)
Category: File System
Developed by: wapmorgan
Created on: Dec 5, 2013
Last updated: 9 years ago


show all

Related Extensions