Skip to content

Commit a099232

Browse files
committed
Changed Readme
1 parent 5e5ba24 commit a099232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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-
~~~~~~ php
8+
~~~~~~
99
$this->helper('catalog/image')->init($this->getProduct(), 'image')->adaptiveResize(400, 215)
1010
$this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->constrainOnly(TRUE)->keepAspectRatio(FALSE)->keepFrame(FALSE)->adaptiveResize(400, 300)
1111
//height is the same is width

0 commit comments

Comments
 (0)