Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Catagory Pic Size?


Dive Right In Scuba

Recommended Posts

Posted

IM new to this and wondering if someone can help me. In our catagory list, the pics are small and look distorted. I have all pics in my system at a 400x400 resolution, and these catagory pics just look horrible. Is there a way I can make them a bit bigger and they will look normal like the rest of the pics?

 

Here is a couple links:

 

http://www.diverightinscuba.com/catalog/index.php/cPath/66

 

http://www.diverightinscuba.com/catalog/index.php/cPath/86

 

Should I not use the same pic resolution of 400x400 or is this a code fix or something?

 

Any help would be greatly appreciated!!!

 

Thanks,

 

Mike

Posted

Hey Mike, iif you're using 2.2 you have 2 choices, you can either hardcode the height and width sizes in catalog/index.php

 

find

 

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

 

and plug in your subcategory image widths and heights or...

 

easier for changes and without editing code...go to the admin panel and go to (on the left info boxes) configuration>images then edit Subcategory Image Width and Subcategory Image Height....you may need to set calculate image size to false but i have not tested this.

 

Hope this helps.

 

Regards, web-junkies

Posted
Hey Mike, iif you're using 2.2 you have 2 choices, you can either hardcode the height and width sizes in catalog/index.php

 

find

 

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

 

and plug in your subcategory image widths and heights or...

 

easier for changes and without editing code...go to the admin panel and go to (on the left info boxes) configuration>images then edit Subcategory Image Width and Subcategory Image Height....you may need to set calculate image size to false but i have not tested this.

 

Hope this helps.

 

Regards, web-junkies

 

 

Awesome!! I just edited those sizes in the second part of what you suggested and it worked flawlessly!! I bet you can imagine those people surfing my sites surprise when I tested 400x400 on there :) Thanks again!!!

Archived

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

×
×
  • Create New...