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.
Hi, i dont know if it is inttentional behaviour but it doesnt look like it for me. Problem is when im using $handle->image_resize = true; with $handle->image_ratio_crop = true; and $handle->image_no_enlarging = true; I set $handle->image_x = 1000; and $handle->image_y = 1000; So when i process images if both original image sides are greater than they are set for then output image is as expected but if one of the sides is smaller then there is really strange behaviour. i thought that if i set $handle->image_no_enlarging = true; then in those cases image will not be resized, but it resizes and resizes very odd, for example if input image is 1096x480 px then output image is 1x480 px and if input image is 800x533 px then output image is 300x533 pxReply
I set $handle->image_x = 1000; and $handle->image_y = 1000;
So when i process images if both original image sides are greater than they are set for then output image is as expected but if one of the sides is smaller then there is really strange behaviour. i thought that if i set $handle->image_no_enlarging = true; then in those cases image will not be resized, but it resizes and resizes very odd, for example if input image is 1096x480 px then output image is 1x480 px and if input image is 800x533 px then output image is 300x533 px