Skip to content

Commit 0cd25f9

Browse files
committed
Changed Readme
1 parent a099232 commit 0cd25f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Attention! For now it will work only with GD2 image library.
55

66
To use adaptive resize just use standart product image helper as always, just change resize() method to adaptiveResize().
77
Example
8-
~~~~~~
8+
9+
~~~~~~ php
910
$this->helper('catalog/image')->init($this->getProduct(), 'image')->adaptiveResize(400, 215)
1011
$this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(FALSE)->keepFrame(FALSE)->adaptiveResize(400, 300)
1112
//height is the same is width

0 commit comments

Comments
 (0)