PHP Image Magician It'll make you love GD
PHP Image Magician is an open source project that uses PHP GD to perform image manipulation in an easy, succinct way.
Resizing, cropping, watermarking, adding text - we got it all and more!
FeaturesPHP Image Magician is open source, so you don't have to worry about how you use it.
Resize to landscape, portrait, or auto; then crop in one fell swoop!
Add watermarks to your precious photos. Photo theft is serious. Preserves transparency.
Add gloss and/or depth to you image. Apple would be proud.
Supports and preserves transparency where possible.
Choose the region to crop with a shortcode (t=top, tl=top left, etc) and crop away!
Caption that image. Then caption it again.
Add borders. Not a 1px black border, a real'ish border. Rotate and sand off 'em corners.
Convert from one image format to another, including BMP.
Read and write BMP support is offered for you legacy, Window love'n bumpkins!
Reads EXIF metadata from your digital photos.
Grey scale, black & white, sepia, negative and vintage.
We've added a PSD reader library for PSD support. This file is not maintained by us.
// *** Include PHP Image Magician library
require_once('php_image_magician.php');
// *** Open JPG image
$magicianObj = new imageLib('racecar.jpg');
// *** Resize to best fit then crop
$magicianObj -> resizeImage(100, 200, 'crop');
// *** Save resized image as a PNG
$magicianObj -> saveImage('racecar_small.png');
// *** Include PHP Image Magician library
require_once('php_image_magician.php');
// *** Open JPG image
$magicianObj = new imageLib('racecar.jpg');
// *** Add watermark to bottom right, 50px from the edges
$magicianObj -> addWatermark('monkey.png', 'br', 50);
// *** Save watermarked image as a PNG
$magicianObj -> saveImage('racecar_small.png');
Follow us on Twitter
Donate