2009/09/10
Preserve Image Ratio in osCommerce
By default, if you configure osCommerce to use a particular image size in admin >> Configuration >> Images, it will rescale the image to fit that size. If the image had a different aspect ratio, it will then appear smushed or distorted. It’s possible to set up osCommerce such that this does not happen. You can do so by setting admin >> Configuration >> Images >> Calculate Image Size to true and then change the tep_image function in includes/functions/html_output.php (more…)