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.
more info about the class
See all posts Reply
$handle->image_resize = true; $handle->image_ratio = true; $handle->image_x = 500; $handle->image_y = 500;
$image_dst = $this->imagecreatenew($this->image_dst_x, $this->image_dst_y);
if ($this->image_dst_x < 1) $this->image_dst_x = 1; if ($this->image_dst_y < 1) $this->image_dst_y = 1; $image_dst = $this->imagecreatenew($this->image_dst_x, $this->image_dst_y);
I've this config:
So, when it tries to resize to 500 image_y, x can't be resized. And it doesn't work.
;-)
In the meantime, you can look for
And add the following two lines just before, so it looks like this:
Thank you for reporting the issue.
Thanks!!
It works fine! ;-)
The script is very very good ;-) Thanks!
Of course, if you like the script "very very" much, feel free to donate! ;)