Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Increasing Product Image Size


johnnyosc

Recommended Posts

Posted

I have been searching all the post and faq on the site but can't find a good way to increase my product picture size on the final product page. Is there a way u can increase the image size with out make the other pictures large as well ( the left side and right side also increases when u adjust the image in admin). I'm using 2.2 version. I read in faq about increase image size but it was written in 10-2001 so it doesnt work for the 2.2 version. Any help would be great. This is an awesome program by the way.

Posted

Hi,

 

Me on my client site all my images are 300 x 400 or 400 x 300 (20 to 25k)

and in the admin configuration/images i have it set up like this:

 Images  



Title Value Action  

Small Image Width 100   

Small Image Height 0   

Heading Image Width 0   

Heading Image Height 0   

Subcategory Image Width 0   

Subcategory Image Height 0   

Calculate Image Size true   

Image Required true  

and if you want to take a look http://www.charme-et-vous.com/catalog/

Posted

In the admin control panel those settings dont work and make the other pictures in the left and right columns the same size as the product picture. I need something else that only increases the product image. Can u adjust one of the product php files? Please advise anyone...

Posted
I have been searching all the post and faq on the site but can't find a good way to increase my product picture size on the final product page. Is there a way u can increase the image size with out make the other pictures large as well ( the left side and right side also increases when u adjust the image in admin). I'm using 2.2 version. I read in faq about increase image size but it was written in 10-2001 so it doesnt work for the 2.2 version. Any help would be great. This is an awesome program by the way.

 

You can also use a quick fix (hack) as following:

1) after loading all SMALL images (in normal admin process), as *.gif files, upload also the corresponding *.jpg files (i.e. if you have a product called black shoe, and the product image is prod_black_shoe.gif, then prepare and upload the big image, prod_black_shoe.jpg, INTO THE SAME DIRECTORY as *.gif image).

 

2) hack the popup_image.php file from the catalog directory as following:

- locate the line situated immediately after <body> tag

- replace it with:

<?php echo tep_image(DIR_WS_IMAGES . substr($products_values['products_image'],0,-3)."jpg", $products_values['products_name']); ?>

-save

 

3) check your web catalog 8)

 

If you read carefully the instruction, you understand that the popup window will load a picture file with the same name as the file stored into the database, but having the *jpg extension instead *.gif.

 

Gupi

Laziness is the key factor in humanity progress.

Archived

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

×
×
  • Create New...