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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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.

Composer package Latest Stable Version Total Downloads License

Installation

How to start: Create from existing file or make an empty area

Properties:

  1. width - width of image
  2. height - height of image
  3. 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:

  1. zoomWidthTo(int $size) - changes proportionally image width to $size
  2. zoomHeightTo(int $size) - changes proportionally image height to $size

can only minimize image:

  1. decreaseWidthTo(int $size) - decreases proportionally image width to $size, if needed
  2. decreaseHeightTo(int $size) - decreases proportionally image height to $size, if needed
  3. decreaseTo(int $size) - decreases proportionally larger side to $size, if needed

can do everything you ask it for:

  1. resize(int $width, int $height) - resizes an image to $width X $height

Crop (can cut image)

  1. crop($x, $y, $x2, $y2) - cuts a rectangular piece of image
  2. 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

  1. rotate($angle, $bgColor = 0) - rotates an image. True equals 90°, False equals -90°.
  2. horizontalFlip() - flips an image horizontally.
  3. verticalFlip() - flips an image vertically.

Manipulation:

  1. appendImageTo($side, ImageEditor $appendix, int $modifiers) - appends an image ($appendix) to current image at $side (top|bottom|left|right).
  2. placeImageAt($x, $y, ImageEditor $image) - places an image atop current image at $x X $y.
  3. placeImageAtCenter(ImageEditor $image) - places an image in the center of current image.

Save

  1. 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

Changelog


All versions of image-editor with dependencies

PHP Build Version
Package Version
Requires ext-gd Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wapmorgan/image-editor contains the following files

Loading the files please wait ....