2009/09/10

Preserve Image Ratio in osCommerce

Filed under: osCommerce Coding — Tags: , — eCartz @ 00:31  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

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…)

Powered by WordPress