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.
It seems as if image_ratio, image_x, and image_y can achieve an image under a given width and height... am I right? Just reading the documentation. Very unusual behavior for me.Reply
Just reading the documentation. Very unusual behavior for me.
image_ratio_xxx, image_x and image_y are used to resize an image.
Note that when you instantiate the class, you can read the images data with image_src_x, image_src_y and image_src_pixels and act accordingly.