Télécharger la liste

Description du projet

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.

Système requise

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

Deux bogues qui a causé le script lancer des avertissements ont été corrigés.
Two bugs that caused the script to throw warnings were fixed.

2011-09-06 23:54
2.2

Une nouvelle propriété est maintenant disponible: png_compression, qui détermine le niveau de compression des fichiers PNG. La valeur de cette propriété est ignorée pour les versions PHP 5.1.2 âgés de plus. Une autre nouvelle propriété est sharpen_images qui, lorsqu'elle est activée, va charger le script à appliquer une "aiguiser" filtre pour les images résultantes. Il peut être très utile lors de la création des miniatures, mais devrait être utilisée uniquement lors de la création de vignettes. Le filtre de netteté s'appuie sur la fonction imageconvolution PHP, qui est disponible uniquement pour la version PHP 5.1.0 +, et laisser les images intactes pour les anciennes versions.
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

Un bug où le script va produire des mises en garde sur certaines images GIF transparentes particulier a été fixé.
A bug where the script would produce warnings on some particular transparent GIF images was fixed.

2011-02-06 03:10
2.1

Un bug lorsque la méthode de rotation ne fonctionnait pas correctement sur les PNG transparents / images GIF a été fixé. Le traitement global des images transparentes a été améliorée. Le "flip_both" méthode a été ajoutée, qui retourne une image à la fois verticalement et horizontalement. Le code pour les méthodes et flip_horizontal flip_vertical a été réécrit. Un exemple plus explicite a été ajouté.
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

La totalité du code a été vérifié et amélioré, et la plupart des noms de méthodes, les arguments de méthode, et les propriétés globales ont été modifiées, la compatibilité avec les versions précédentes. En outre, le redimensionner () méthode a été améliorée, et vous pouvez maintenant redimensionner une image à une largeur et la hauteur tout en conservant le ratio d'aspect en faisant usage de la culture () méthode.
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