Jump to content

Archived

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

gaspower

Help With Re-size Image In Product_Info OSC 2.31

Recommended Posts

Hello,

 

Can someone please explain how to re-size the main image in product_info.php in OSC 2.31. I see the code,

 

<script type="text/javascript">
$('#piGal ul').bxGallery({
 maxwidth: 300,
 maxheight: 200,
 thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,
 thumbcontainer: 300,
 load_image: 'ext/jquery/bxGallery/spinner.gif'
});
</script>

 

All my images are 450x450 pixel. I would like in product_info.php that the be 250x250.

 

Thanks Jr

Share this post


Link to post
Share on other sites

Set the maxwidth and maxheight to be 250, same for thumbcontainer. Thumbwidth you can set depending on how many thumbs you want to display (eg if 5 then 250/5 = 50, so you set it to 48 because of 1px shadow left and right)

Share this post


Link to post
Share on other sites

×