There was an error while loading. Please reload this page.
1 parent a099232 commit 0cd25f9Copy full SHA for 0cd25f9
README.md
@@ -5,7 +5,8 @@ Attention! For now it will work only with GD2 image library.
5
6
To use adaptive resize just use standart product image helper as always, just change resize() method to adaptiveResize().
7
Example
8
-~~~~~~
+
9
+~~~~~~ php
10
$this->helper('catalog/image')->init($this->getProduct(), 'image')->adaptiveResize(400, 215)
11
$this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(FALSE)->keepFrame(FALSE)->adaptiveResize(400, 300)
12
//height is the same is width
0 commit comments