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.
changelog - added image_ratio_crop which resizes within image_x and image_y, keeping ratio, but filling the space by cropping excedent of image - added mime_check, which default is true, to set checks against allowed MIME list - if MIME is empty, the class now triggers an error - color #000000 is OK for image_text_color, and related text transparency bug fixed - gd_version() now uses gd_info(), or else phpinfo() - fixed path issue when the destination path has no trailing slash on Windows systems - removed inline functions to be fully PHP5 compatibleReply
changelog
- added image_ratio_crop which resizes within image_x and image_y, keeping ratio, but filling the space by cropping excedent of image
- added mime_check, which default is true, to set checks against allowed MIME list
- if MIME is empty, the class now triggers an error
- color #000000 is OK for image_text_color, and related text transparency bug fixed
- gd_version() now uses gd_info(), or else phpinfo()
- fixed path issue when the destination path has no trailing slash on Windows systems
- removed inline functions to be fully PHP5 compatible