Change small_image size Magento -
i need change small image size on magento community. here´s why, not fit global product window. link here
i tried @ \app\design\frontend\default\magik_pinstyle\template\catalog\product\list.phtml , flushed image cache not work.
i can see it`s 265px image when search resize(265) dont find anything.
this located in app/design/frontend/default/magik_pinstyle/template/catalog/product/view/media.phtml
. copy file on app/design/frontend/base/default/template/catalog/product/view/media.phtml
if don't have on template. on line 68 (in base media.phtml) you'll find line:
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlescape($this->getimagelabel()).'" title="'.$this->htmlescape($this->getimagelabel()).'" itemprop="image" />';
your photos don't fit frame because .product-view .product-img-box .product-image
css set 320x300px (width/height). if want pictures fit, need make sure resize set same size of frame, , should square off frame.
- if want larger frame, change image css 320x320px or 300x300px , change above line
resize(320)
orresize(300)
, respectively. - if want keep 265x265px image size, change image css 265x265px , leave is.
edit
it still using file in 265x265px resize cache.
you should deliberately clear out in /media/catalog/product/cache
folder, first media.phtml checks see if resize exists , falls that. if 1 isn't found, runs resize.
you editing file found in app/design/frontend/default/magik_pinstyle/template/catalog/product/view/media.phtml
, correct? if altering existing resize function doesn't work after emptying cache can add ->resize(300)
function line 15:
$this->helper('catalog/image')->init($_product, 'image')->resize(300)
lastly, if have custom lightbox or theme section in settings, check may have missed alternately set dimensions.
make sure refresh cache, should clear image cache too.
Comments
Post a Comment