Announcement

Collapse
No announcement yet.

Codepath section generator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Codepath section generator

    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

    #2
    Originally posted by fatoftheland
    I hope this makes sense to someone!!!
    Yes.

    Option 1 = the best solution to retain quality on your website

    Option 2 = the quickest solution to reduce the quality of your images on your website


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Thanks, but how do I edit 3000 pictures?

      Comment


        #4
        There are many utilities around that can do batch conversions - one that I use is Faststone Photo Resizer.

        Comment


          #5
          You could also possibly use PHP to create a scaled version of the original. Norman posted some code (maybe in the AUG) at the start of v8 forum to resize images.


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment

          Working...
          X