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.
Oh yes, my network card is having a lot of trouble. I get about 2 maybe 3 megabits up and down right now at best. Just awful. I'll be replacing it soon. However, I don't want to necessarily block large images. I want to downsize large images that are over a certain number of pixels.Reply
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
As for limiting the images that can be uploaded, check out image_max_width, image_max_height, and image_max_pixels.
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.