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 See thread Reply
$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);
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.