Enable image resizing
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Advanced and choose System.
-
Expand
To change default settings, deselect the Use system value checkbox if needed.
For a detailed list of these configuration settings, see Image Upload Configuration in the Configuration Reference.
-
To enable, make sure Enable Frontend Resize is set to
Yes
. -
Enter a Quality setting between
1
and100
%.A setting between 80-90% is recommended for a reduced file size and high quality.
-
Set the Maximum Width in pixels for the image.
When the image is resized, it does not exceed this width and retains proportions.
-
Set the Maximum Height in pixels for the image.
When the image is resized, it does not exceed this height and retains proportions.
-
When complete, click Save Config.
Field descriptions
Field | Scope | Description |
---|---|---|
Quality | Global | Determines the JPG quality for the resized image. Lower quality reduces the file size. 80-90% is recommended to help reduce file size with high quality. Default: 80 |
Enable Frontend Resize | Global | Allows Commerce to resize large, oversized images you may upload for the Product Details page. Commerce resizes the image files using JavaScript when uploading the file. When the image is resized, it keeps the exact proportions, to meet and not exceed the largest size for Maximum Width or Maximum Height. Default: Yes |
Maximum Width | Global | Determines the maximum pixel width for the image. When the image is resized, it does not exceed this width. Default: 1920 |
Maximum Height | Global | Determines the maximum pixel height for the image. When the image is resized, it does not exceed this height. Default: 1200 |