masterexploder/PHPThumb

function.imagecreatetruecolor: Invalid image dimensions

Opened this issue · 0 comments

If the size of the image, for example (350, 6), then when you call RESIZE to 50 in width, an error occurs "function.imagecreatetruecolor: Invalid image dimensions" on line 262 in GdThumb.inc.php, as new height is equal to 0 and calls the "imagecreatetruecolor (50, 0)"

PS: google translate