2017 © Pedro Peláez
 

library images

A package that allows you to manipulate images and overlay text and image using the GD library

image

that-chris-r/images

A package that allows you to manipulate images and overlay text and image using the GD library

  • Friday, May 16, 2014
  • by christopherrolfe198
  • Repository
  • 1 Watchers
  • 0 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Imagen

A GD image manipulation library with the aim of allowing you to create dynamic images with the GD library, (*1)

Currently in an alpha testing phase, (*2)

If you have an feedback please either raise an issue or email me here, (*3)

Usage

These classes can be used for basic manipulation of images. This includes cropping, resizing and overlaying text and images., (*4)

Before doing most things you should create an instance of BaseImage to pass around into the resize/crop classes., (*5)

$baseimage = new BaseImage('Path/To/Image/File.(png|jpg|gif)');, (*6)

Currently png, jpg and gif support has been added but potentially any types of images supported via GD can be used., (*7)

You then create a resize or crop object which can use the base image instance., (*8)

$resize = new Resize($BaseImage);
$resize->resize(200,200);

$crop = new Crop($baseimage);
$crop->crop(200,200);

Namespaces

If you run into trouble with classes not being recognised you need to make sure you have set the appropriate namespaces up., (*9)

BaseImage - ThatChrisR\Imagen\Base\BaseImage;, (*10)

Resize - ThatChrisR\Imagen\Resize\Resize;, (*11)

Crop - ThatChrisR\Imagen\Crop\Crop;, (*12)

ImageOverlay - ThatChrisR\Imagen\Overlay\ImageOverlay;, (*13)

TextOverlay - ThatChrisR\Imagen\Overlay\TextOverlay;, (*14)

The Versions

16/05 2014

dev-master

9999999-dev

A package that allows you to manipulate images and overlay text and image using the GD library

  Sources   Download

MIT

The Development Requires

by Christopher Rolfe