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'm trying to generate copies of images, resizing them with particular dimensions (700x990px). My problem occurs when width and height of source image are smaller than 700x900. I tried using image_fill = true, but I can't obtain images of desired dimensions : either width or height is wrong on destination file. Do you have a trick to get images of exact dimensions ?
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
In advance excuse my english, i'm french.
I'm trying to generate copies of images, resizing them with particular dimensions (700x990px). My problem occurs when width and height of source image are smaller than 700x900. I tried using image_fill = true, but I can't obtain images of desired dimensions : either width or height is wrong on destination file.
Do you have a trick to get images of exact dimensions ?
Thanks.
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.
Best regards,