I have Codepaths section generator which makes individual pages for products to upload to google base. The problem is the picture is a small cropped part of the original. Andy Barrow of Codepath (bless him) has sent me the fix for it but I have not got a clue what, where or how to do it!
This is a copy of his Email.
ok, I see your problem. We copy the product image into the section image for the new section but your html allows less space for the section image so it gets cropped. You have 2 choices.
1. The most efficient for bandwidth, but the most hassle for you, is to create a second image for each product that can be used as the section image and is resized to fit on the section page. If you call this image xxxxx_small.gif, I can change the program to specify the product image filename with the _small suffix and so pick the smaller image for each section page.
2. The quickest method however, for a small overhead in bandwidth, is to edit the HTML in the design tab for the section page to resize the image. The line that reads something like...
<img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
..can be changed to something like..
<img alt="<actinic:variable name="SectionName" encoding="strip"/>" width=150px src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
By adding width=150px you can specify the width (and height using the height=??px parameter) that you want the image to appear so instead of cropping it to the size of the table cell, it shrinks it.
I hope this makes sense to someone!!!
Thanks in Advance
This is a copy of his Email.
ok, I see your problem. We copy the product image into the section image for the new section but your html allows less space for the section image so it gets cropped. You have 2 choices.
1. The most efficient for bandwidth, but the most hassle for you, is to create a second image for each product that can be used as the section image and is resized to fit on the section page. If you call this image xxxxx_small.gif, I can change the program to specify the product image filename with the _small suffix and so pick the smaller image for each section page.
2. The quickest method however, for a small overhead in bandwidth, is to edit the HTML in the design tab for the section page to resize the image. The line that reads something like...
<img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
..can be changed to something like..
<img alt="<actinic:variable name="SectionName" encoding="strip"/>" width=150px src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
By adding width=150px you can specify the width (and height using the height=??px parameter) that you want the image to appear so instead of cropping it to the size of the table cell, it shrinks it.
I hope this makes sense to someone!!!
Thanks in Advance
Comment