by Jim » Mon Apr 29, 2013 12:57 pm
The resize code used by ShopSite is not always able to keep the transparency on images. The best thing to do would be to create the images with the background color the same as the background color of the pages they will be displayed on. That way the image will not have a different color substituted when it is resized.
Another option is to create all the resized images outside of shopsite and upload them by ftp to the appropriate directory in the media folder of your store. Note that if you are going to use this option you should upload your full size image and have ShopSite create the resized images. Once that has been done you can upload your smaller versions of the resized images. The reason this step is necessary is because all of the parameters for an image including the size, url, attributes etc are written to a single configuration file with the name .img.<imageName>. Anytime the code calls for generating an image the value is retrieved from the configuration file. If the images are just uploaded without ShopSite having created the config file only the original sized image will be able to be output since there will not be any info for the various resized images.