Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

elgentos/AdaptiveResizeM2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Resize and Crop for Magento 2

Based on (AdaptiveResize)[https://github.com/obukhow/AdaptiveResize] for Magento 1

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%