class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
I am pleased to release the version 0.25, as a Release Candidate. It sports a lot of new features, as well as an extensive rewriting of the image manipulation code. It should now work like a charm with transparent images. Get it here.
Feel free to download it, and test it. If you see anything which doesn't work, please send me some feedback, and I will fix it for the proper release.
Changelog for version 0.25 RC1:
- added forbidden to set an array of forbidden MIME types - implemented support for simple wildcards in allowed and forbidden, such as image/* - preset the file extension to the desired conversion format when converting an image - added read and write support for BMP images - added a flag file_is_image to determine if the file is a supported image type - the class now provides some information about the image, before calling process(). Available are image_src_x, image_src_y and the newly introduced image_src_bits, image_src_pixels and image_src_type. Note that this will not work if open_basedir restrictions are in place - improved logging; now provides useful system information - added some more pre-processing checks for files that are images: image_max_width, image_max_height, image_max_pixels, image_max_ratio, image_min_width, image_min_height, image_min_pixels and image_min_ratio - added image_ratio_pixels to resize an image to a number of pixels, keeping aspect ratio - added image_is_palette and image_is_transparent and image_transparent_color for GIF images - added image_default_color to define a fallback color for non alpha-transparent output formats, such as JPEG or BMP - changed image_background_color, which now forces transparent areas to be painted - improved reflections and color overlays so that it works with alpha transparent images - image_reflection_color is now deprecated in favour of image_default_color - transparent PNGs are now processed in true color, and fully preserving the alpha channel when doing merges - transparent GIFs are now automatically detected. preserve_transparency is deprecated - transparent true color images can be saved as GIF while retaining transparency, semi transparent areas being merged with image_default_color - transparent true color images can be saved as JPG/BMP with the semi transparent areas being merged with image_default_color - fixed conversion of images to true color
I installed the script and.........................IT'S WORKING! I love it! Thank you so much. This script makes programming with images a lot easier.Reply
Re: Version 0.25 Release Candidate 1 is released new!
I just wanted to say thank you so much for this truly excellent script. I will now be trying out 0.25 RC as the new features seem very useful. Have you put this app on 'Hotscript' or 'SourceForge' yet as I didn't find it there?Reply
Re: Version 0.25 Release Candidate 1 is released new!
Hi thank you for releasing this, I was banging my head against the monitor cause I couldn't figure out why image_src_x and y were not working in the previous version (they both echoed 0). I'll give it a try and send feedback if necesarry. Also version 0.24 crashed my apache while processing a png file (xampp + windows).Reply
I am pleased to release the version 0.25, as a Release Candidate. It sports a lot of new features, as well as an extensive rewriting of the image manipulation code. It should now work like a charm with transparent images. Get it here.
Feel free to download it, and test it. If you see anything which doesn't work, please send me some feedback, and I will fix it for the proper release.
Changelog for version 0.25 RC1:
What happened to the image_ratio_fill function? Is it gone?
I installed the script and.........................IT'S WORKING! I love it! Thank you so much. This script makes programming with images a lot easier.
Have you put this app on 'Hotscript' or 'SourceForge' yet as I didn't find it there?
I submitted -and keep updated- the script on HotScripts, PHP Classes, Freshmeat and it has been added plenty of other script sites.
I'll give it a try and send feedback if necesarry.
Also version 0.24 crashed my apache while processing a png file (xampp + windows).