How to resize the categories images in Magento?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How to resize the categories images in Magento? I used the following code to resize product images, but I'm not able to use it for showing categories images: $this -> helper ( 'catalog/image' )-> init ( $_product , 'small_image' )-> resize ( 170 ); 回答1: If I am not mistaken, it should be : init ( $_product , 'small_image' )-> resize ( 100 , 100 ); // single parameter work with 'image' init ( $_product , 'image' )-> resize ( 100 ); // How about this $this -> helper ( 'catalog/image' )-> init ( $this -> getProduct (), 'thumbnail' ,