dev-master
9999999-devA package that allows you to manipulate images and overlay text and image using the GD library
MIT
The Development Requires
by Christopher Rolfe
A package that allows you to manipulate images and overlay text and image using the GD library
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)
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);
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)
A package that allows you to manipulate images and overlay text and image using the GD library
MIT