trive/module-adaptive-resize 1.0.0

Resize image with crop functionality fot Magento 2 extension

Type

magento2-module

License

Commercial

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Resize image with crop functionality fot Magento 2 extension.

Ported to Magento 2 this https://github.com/obukhow/AdaptiveResize Magento 1 extension

Examples: 1. $this->helper('Trive\AdaptiveResize\Helper\Image')->init($_product)->adaptiveResize(240,300); 2. $this->helper('Trive\AdaptiveResize\Helper\Image')->init($_product,'category_page_grid')->adaptiveResize(240,300); 3. $this->helper('Trive\AdaptiveResize\Helper\Image')->init($_product,'category_page_grid')->setCropPosition('top')->adaptiveResize(240);

You can use following parameters with setCropPosition function: - top - top-left - top-right - bottom - bottom-left - bottom-right - center - center-left - center-right