Download the PHP package web200/magento-mod-web200_image-resize without Composer
On this page you can find all versions of the php package web200/magento-mod-web200_image-resize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download web200/magento-mod-web200_image-resize
More information about web200/magento-mod-web200_image-resize
Files in web200/magento-mod-web200_image-resize
Package magento-mod-web200_image-resize
Short Description Magento 2 Module to add simple image resizing
License OSL-3.0 AFL-3.0
Informations about the package magento-mod-web200_image-resize
Magento 2 Image Resize
Magento 2 Module to add simple image resizing capabilities in all blocks and .phtml templates
Installation
Simple resize image usage
ViewModel
Layout
phtml
Helper
phtml
Advanced resize and display image usage
- Display alternative image size with breakpoint / retina settings.
- Option to display webp images, available in Store > Configuration > Image Resize.
- In order to display images use a js library : https://github.com/verlok/vanilla-lazyload
ViewModel
Layout
phtml
Display in html
Resize Settings
The folowing is a list of the resize settings that can be set directory to $resizeSettings parameter
Name | Default | Type |
---|---|---|
constrainOnly | true | Boolean |
keepAspectRatio | true | Boolean |
keepTransparency | true | Boolean |
keepFrame | false | Boolean |
backgroundColor | null | Array with RGB values ([255,255,255]) |
quality | 85 | Number 1-100 |
--- | --- | --- |
watermark | null | array |
watermark['imagepath'] | null | string |
watermark['x'] | null | int |
watermark['y'] | null | int |
watermark['opacity'] | null | string |
watermark['title'] | null | string |
or configurate in Store > Configuration > Image Resize
SVG
Authorize and sanitize SVG image upload. Disabled by default. You need to enable it in Store > Configuration > Image Resize.
- Add svg upload for icon and logo website
- Add svg upload for backend configuration files
- Add svg upload for product images
Cache
Resized images are saved in cache to improve performance. That way, if an image was already resized, we just use the one in cache.
If you need to, you can clear the resized images cache on the Admin Cache Management
Prerequisites
- PHP >= 7.1.*
- Magento >= 2.3.*
Forked from
All versions of magento-mod-web200_image-resize with dependencies
rosell-dk/webp-convert Version ^2.3
enshrined/svg-sanitize Version ^0.15