Download List

Project Description

Zebra_Image is a compact (one file only), lightweight, object-oriented image manipulation library, written in and for PHP, that provides methods for performing several types of image manipulation operations. It doesn’t require any external libraries other than the GD2 extension (with which PHP usually comes pre-compiled). The code is heavily commented and generates no warnings/errors/notices when PHP’s error reporting level is set to E_ALL. It can rescale, flip, rotate, and crop images. It supports loading and saving images in the GIF, JPEG, and PNG formats and preserves transparency for GIF, PNG, and PNG24. It can re-size images to an exact given width and height and still maintain aspect ratio.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2011-10-15 17:35
2.2.1

Two bugs that caused the script to throw warnings were fixed.

2011-09-06 23:54
2.2

A new property is now available: png_compression, which determines the compression level of PNG files. The value of this property is ignored for PHP versions older than 5.1.2. Another new property is sharpen_images which, when enabled, will instruct the script to apply a "sharpen" filter to the resulting images. It can be very useful when creating thumbnails, but should be used only when creating thumbnails. The sharpen filter relies on PHP's imageconvolution function, which is available only for PHP version 5.1.0+, and will leave the images untouched for older versions.

2011-03-28 02:17
2.1.1

A bug where the script would produce warnings on some particular transparent GIF images was fixed.

2011-02-06 03:10
2.1

A bug where the rotate method was not working correctly on transparent PNG/GIF images was fixed. The overall handling of transparent images was improved. The “flip_both” method was added, which flips an image both vertically and horizontally. The code for the flip_horizontal and flip_vertical methods was rewritten. A more explicit example was added.

2011-01-05 06:52
2.0

The entire code was audited and improved and most of the method names, method arguments, and global properties were changed, breaking compatibility with previous versions. In addition, the resize() method was improved, and can now resize an image to an exact width and height and still maintain the aspect ratio by making use of the crop() method.

Project Resources