$x = $fix_to_X; // $y = intval($x * $current_Y / $current_X); // } } $thumb = imagecreatetruecolor($x, $y); imagealphablending($thumb, false); imagesavealpha($thumb, true); // imagefill($thumb, 0, 0, IMG_COLOR_TRANSPARENT); imagecopyresampled($thumb, $img, 0, 0, 0, 0, $x, $y, $current_X, $current_Y); $x = $fix_to_X; // $y = intval($x * $current_Y / $current_X); // } } $thumb = imagecreatetruecolor($x, $y); imagealphablending($thumb, false); imagesavealpha($thumb, true); // imagefill($thumb, 0, 0, IMG_COLOR_TRANSPARENT); imagecopyresampled($thumb, $img, 0, 0, 0, 0, $x, $y, $current_X, $current_Y);|
ValueError
|
|---|
ValueError:
imagecreatetruecolor(): Argument #1 ($width) must be greater than 0
at /home/pinsoft/public_html/r_imgs.php:275
at imagecreatetruecolor(0, 0)
(/home/pinsoft/public_html/r_imgs.php:275)
|