Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF Catalog can not resize image?


Spadver

Recommended Posts

I use v 1.4

 

And if I get in admin SMALL IMAGE WIDTH 0 I've got error, when trying create PDF Catalog

 

Warning: getimagesize(ru): failed to open stream: No such file or directory in /pub/home/****/ms1/admin/pdf_catalogue.php on line 370

 

And if I get in admin SMALL IMAGE HEIGHT 0 I've got error, when trying create PDF Catalog

 

Warning: getimagesize(ru): failed to open stream: No such file or directory in /pub/home/****/ms1/admin/pdf_catalogue.php on line 360

 

Here is some code from pdf_catalog.php

//If only Small Image Width is defined

else if(strlen($data_array[0])>1 && strlen($data_array[1]))

{

$heightwidth=getimagesize($data_array[11]); // line 360

$data_array[0]=$data_array[0];

$data_array[1]=$heightwidth[1]*PDF_TO_MM_FACTOR;

 

$this->ShowImage($data_array[0],$data_array[1],$link,$data_array[12]);

$y1=$this->GetY();

}

//If only Small Image Height is defined

else if(strlen($data_array[0]) && strlen($data_array[1])>1)

{

$heightwidth=getimagesize($data_array[11]); // line 370

$data_array[0]=$width=$heightwidth[0]*PDF_TO_MM_FACTOR;

$data_array[1]=$data_array[1];

 

$this->ShowImage($data_array[0],$data_array[1],$link,$data_array[12]);

$y1=$this->GetY();

}

 

And my langusge is not English! (Russian, id=4)

 

But if SMALL IMAGE WIDTH = SMALL IMAGE HEIGHT = 100

everything is OK.

 

Any ideas?

 

Thank's in advance.

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...