Download the PHP package wapmorgan/image-editor without Composer
On this page you can find all versions of the php package wapmorgan/image-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wapmorgan/image-editor
More information about wapmorgan/image-editor
Files in wapmorgan/image-editor
Download wapmorgan/image-editor
More information about wapmorgan/image-editor
Files in wapmorgan/image-editor
Vendor wapmorgan
Package image-editor
Short Description Simple image editor for resizing, cropping and doing other elementary actions with images.
License MIT
Homepage https://github.com/wapmorgan/ImageEditor
Package image-editor
Short Description Simple image editor for resizing, cropping and doing other elementary actions with images.
License MIT
Homepage https://github.com/wapmorgan/ImageEditor
Keywords images
Please rate this library. Is it a good library?
Informations about the package image-editor
!! Moved to another repository: https://github.com/wapmorgan/Imagery This one is not updatable at all!
ImageEditor is a wrapper of gd functions. Earlier it was working only in yii-application context, now you can use this package in any application.
Installation
- Composer package:
wapmorgan/image-editor
[1] - Archive:
https://github.com/wapmorgan/ImageEditor/archive/master.zip
How to start: Create from existing file or make an empty area
Properties:
- width - width of image
- height - height of image
- resource - original gd-resource of image (you can pass it directly to image-gd functions)
Operations
Resize && Zoom (don't cut image)
can minimize and maximize image:
- zoomWidthTo(int $size) - changes proportionally image width to
$size
- zoomHeightTo(int $size) - changes proportionally image height to
$size
can only minimize image:
- decreaseWidthTo(int $size) - decreases proportionally image width to
$size
, if needed - decreaseHeightTo(int $size) - decreases proportionally image height to
$size
, if needed - decreaseTo(int $size) - decreases proportionally larger side to
$size
, if needed
can do everything you ask it for:
- resize(int $width, int $height) - resizes an image to
$width
X$height
Crop (can cut image)
- crop($x, $y, $x2, $y2) - cuts a rectangular piece of image
- decreaseSide($side, int $size) - deletes a piece of image from specific side. For example, if $side=top and $size=100, 100px from top will be deleted.
Rotation && Mirroring
- rotate($angle, $bgColor = 0) - rotates an image.
True
equals 90°,False
equals -90°. - horizontalFlip() - flips an image horizontally.
- verticalFlip() - flips an image vertically.
Manipulation:
- appendImageTo($side, ImageEditor $appendix, int $modifiers) - appends an image (
$appendix
) to current image at$side
(top|bottom|left|right
). - placeImageAt($x, $y, ImageEditor $image) - places an image atop current image at
$x
X$y
. - placeImageAtCenter(ImageEditor $image) - places an image in the center of current image.
Save
- save($filename, $format, $quality) - saves image to disk.
Possible
$format
values: jpeg, png, gif, wbmp. Quality is an integer value between 0 (worst) and 100 (best).
Links
- ImageEditor repo: https://github.com/wapmorgan/ImageEditor
- ImageEditor testing script: https://github.com/wapmorgan/ImageEditor-test
- ImageEditor docs: https://github.com/wapmorgan/ImageEditor-doc
- ImageEditor class reference (API): http://wapmorgan.github.io/ImageEditor-doc/classes/ImageEditor.html
Changelog
All versions of image-editor with dependencies
PHP Build Version
Package Version
Requires
ext-gd Version
*
The package wapmorgan/image-editor contains the following files
Loading the files please wait ....