trive/module-adaptive-resize
Composer 安装命令:
composer require trive/module-adaptive-resize
包简介
Resize image with crop functionality fot Magento 2 extension
README 文档
README
Based on (AdaptiveResize)[https://github.com/obukhow/AdaptiveResize] for Magento 1
Examples:
- $this->helper('Trive\AdaptiveResize\Helper\Image')->init($_product)->adaptiveResize(240,300);
- $this->helper('Trive\AdaptiveResize\Helper\Image')->init($_product,'category_page_grid')->adaptiveResize(240,300);
- $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
统计信息
- 总下载量: 476
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Commercial
- 更新时间: 2017-02-16