Wednesday November 28, 2007. 08:34 PM
FreshMeat
class.upload.php manages file uploads for you. It manages the uploaded file and allows you to do whatever you want with the file as many times as you want. If the file is an image, you can convert and resize it, rotate it, and crop it in many ways. You can also add borders, frames, bevels, add of text labels and watermarks, or apply various graphical effect filters. Security features and file management functions are provided. The class can also work on local files, which is useful for batch processing images online, and can circumvent open_basedir restrictions.
License: GNU General Public License (GPL)
Changes:
This is a major rewrite of the graphic capabilities of the class. Transparency and true color are fully supported, for PNG, JPEG, GIF, and BMP pictures. More settings are available, such as MIME type enhanced checking, sizes and dimensions checks, background color, default color for non-transparent formats, etc., and the class provides more information on uploaded files. The class can directly output files to the browser. Error messages are now internationalized, and translations provided. The class is compatible with PHP 4 and 5.