Irin Posted April 14, 2005 Share Posted April 14, 2005 I've installed PDF Catalogs v.159. When I try to create a catalog, I get the following error: Warning: imagecreatetruecolor(): Invalid image dimensions in D:\web\vhosts\tvielectronics.com\subdomains\shop-on-line\httpdocs\osCommerce\admin\pdf_catalogue.php on line 187 Warning: imagecopyresized(): supplied argument is not a valid Image resource in D:\web\vhosts\tvielectronics.com\subdomains\shop-on-line\httpdocs\osCommerce\admin\pdf_catalogue.php on line 188 Warning: imagejpeg(): supplied argument is not a valid Image resource in D:\web\vhosts\tvielectronics.com\subdomains\shop-on-line\httpdocs\osCommerce\admin\pdf_catalogue.php on line 193 Lines 187-193 in admin\pdf_catalogue.php says: $im=imagecreatetruecolor($width/PDF_TO_MM_FACTOR, $height/PDF_TO_MM_FACTOR); imagecopyresized($im, $src, 0, 0, 0, 0,$width/PDF_TO_MM_FACTOR, $height/PDF_TO_MM_FACTOR, $size[0], $size[1]); } else { $im=imagecreatetruecolor($height/PDF_TO_MM_FACTOR,$width/PDF_TO_MM_FACTOR); imagecopyresized($im, $src, 0, 0, 0, 0, $height/PDF_TO_MM_FACTOR, $width/PDF_TO_MM_FACTOR, $size[0], $size[1]); } if(!imagejpeg($im, $destination.$array[$last-1])) { exit(); Please help me! I don't know what to do. Irina. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.