## Terry - 专注外贸B2C

GitHub地址：https://github.com/fancyecommerce

# 产品图片重设插件（不会变形） - Resize images proportionally

Magento Connect：magento-community/NetAmbition_DirectResize

### 介绍：

Give the possibility to resize images without distorted them.

You can specify a Width and a Height value as well as a ratio.

The ratio options are :
0 - none proportionnal. The image will be resized at the Width and Height values.
1 - proportionnal, based on the Width value
2 - proportionnal, based on the Height value
3 - proportionnal for the new image can fit in the Width and the Height values.
4 - proportionnal. The new image will cover an area with the Width and the Height values.

For use, replace the actuals calls :
$this->resize(150,150); with :$this->directResize(150,150,3);
where the options are : (width, height, ratio)

---------------------------------------------------------------

To use the module, you must find in your .phtml file the calls of the product images and change them.

For example, in the file design/frontend/default/default/template/catalog/product/list.phtml
at line 95, you can find : "->resize(x,y)" that you must replace with "->directResize(x,y,r)" with r = ratio of your choice.

03-30 971

10-13 1044

02-01 960

07-20 2264

04-26 774

11-25 5335

#### jquery产品图片放大镜插件制作多种图片，细节图放大查看特效下载

2013年07月24日 473KB 下载

07-23 2617

11-10 4307

06-06 1274