2014-03-01 42 views
0

默认将图片上传到magento中的small_image文件夹中后,会创建以100x100的分辨率复制它; 125x125像素; 180X240; 75x100
我需要它也可以在180x180中创建它
如果编辑list.phtml在正方形中显示图像,它会在正方形中插入矩形图像,您可以在左右两侧看到白色边框。
我该怎么做?在magento社区中定义小图片尺寸的大小

回答

1
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(180); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> 

请尝试使用list.phtml中的上述代码。

希望得到这个帮助