The image help can resize the image, but I don't understand the constrainOnly
parameter in it. What is the function of ->constrainOnly(true)
and ->constrainOnly(false)
?
code example
return $this->_imageHelper
->init($product,'category_page_list')
->constrainOnly(FALSE)
->keepAspectRatio(TRUE)
->keepFrame(FALSE)
->resize(240, 300)