Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Use of 3 differnet imagesizes


Zuncan

Recommended Posts

Hi!

 

Im trying to use 3 diffrent sizes of my productimages. One size in the productlisting, one size in product info an one big in the imagepopup window.

 

Im using a contribution that makes thumbnails automatic. If I could just alter this code to make the image show up in a diffrent size:

 

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="main"') . '</a></TD><TD WIDTH="*" valign="top" align="middle" class="erbjudanden"><B>';

 

I cant change the SMALL_IMAGE_WIDTH because that would make a new thumbnail in that size and that wouldnt look so good when the customers goes monto the productinfo. If I just could add some code to this that loads the image in the SMALL_IMAGE_WIDTH but then force it to be displayed even smaller.

 

Is it possible?

 

/Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

Hi!

 

Im trying to use 3 diffrent sizes of my productimages. One size in the productlisting, one size in product info an one big in the imagepopup window.

 

Im using a contribution that makes thumbnails automatic. If I could just alter this code to make the image show up in a diffrent size:

 

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="main"') . '</a></TD><TD WIDTH="*" valign="top" align="middle" class="erbjudanden"><B>';

 

I cant change the SMALL_IMAGE_WIDTH because that would make a new thumbnail in that size and that wouldnt look so good when the customers goes monto the productinfo. If I just could add some code to this that loads the image in the SMALL_IMAGE_WIDTH but then force it to be displayed even smaller.

 

Is it possible?

 

/Zuncan

 

Yes, it is possible.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...