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.
OK, thanks. Unfortunately, i've forgotten an important detail : in cas the source image is smaller than 700x900, i don't want the image to be resized, but only filled with a background-color to fit the desired dimensions. With image_x =700, image_y=900, and image_ratio_fill=true, the generated file have correct dimensions, but my little source image is resized, so the result is pretty bad.Reply
With image_x =700, image_y=900, and image_ratio_fill=true, the generated file have correct dimensions, but my little source image is resized, so the result is pretty bad.