Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Invalid image dimensions in pdf_catalogue


Irin

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...