2017 © Pedro Peláez
 

library image

Simple image manipulation

image

artemeon/image

Simple image manipulation

  • Thursday, March 29, 2018
  • by artemeon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 988 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 151 % Grown

The README.md

Image

Class to manipulate and output images., (*1)

This class can be used to load or create an image, apply multiple operations, such as scaling and rotation, and save the resulting image. By default the processed image will be cached and no processing will be performed when a cached version is available., (*2)

Example:, (*3)

$image = new Image();
$image->load("/files/images/samples/PA252134.JPG");

// Scale and crop the image so it is exactly 800  600 pixels large.
$image->addOperation(new ImageScaleAndCrop(800, 600));

// Render a text with 80% opacity.
$image->addOperation(new ImageText("Kajona", 300, 300, 40, "rgb(0,0,0,0.8)")

// Apply the operations and send the image to the browser.
if (!$image->sendToBrowser()) {
    echo "Error processing image.";
}

Custom operations can be added by implementing ImageOperationInterface. Most operations should inherit from ImageAbstractOperation, which implements ImageOperationInterface and provides common functionality., (*4)

The Versions

29/03 2018

dev-master

9999999-dev http://kajona.de

Simple image manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

image manipulation

29/03 2018

v0.1.1

0.1.1.0 http://kajona.de

Simple image manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

image manipulation

29/03 2018

v0.1.0

0.1.0.0 http://kajona.de

Simple image manipulation

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

image manipulation