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.
| Tags | Internet Web Dynamic Content multimedia Graphics Software Development Libraries php classes |
|---|---|
| Licenses | GPL |
| Operating Systems | OS Independent |
| Implementation | PHP |
| Translations | English French Spanish Italian Dutch German Czech Swedish Norwegian Polish Romanian Croatian Brazilian Portuguese Catalan Turkish Greek Ukrainian Estonian Slovak Russian Hebrew Indonesian Vietnamese Chinese Traditional Chinese |
Recent releases


Changes: New features, improvements, and bugfixes. MIME detection is stronger, transparency replacement for true color images has been improved, and you can now crop a picture before resizing it. Many translation files were added.


Changes: MIME detection has been rewritten, and uploading from Flash is now fully supported. Transparency support has been improved for palette images. The class can be used to process uploaded files and images, via HTML pages, Flash uploaders, or to work on local files.


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.


Changes: This release fixes a few bugs and adds some improvements. It is now possible to set a background color for the pictures and to use replacement tokens in the text labels. Some new cropping options have been implemented.


Changes: This version fixes all the bugs up to date, and brings in new features. It is now possible to create "Web 2.0" reflections on your uploaded pictures. A lot more control has been added to the text features, such as line breaks. It is now possible to use external fonts. The class is also fully able to circumvent open_basedir restrictions.