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 |
Image placeholders
Adobe Commerce and Magento Open Source use temporary images as placeholders until the permanent product images become available. A different placeholder can be uploaded for each role. The initial placeholder image is a sample logo, which you can replace with the image of your choice.
To upload placeholder images:
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Catalog and choose Catalog underneath.
-
Expand
For a detailed list of these configuration settings, see Product Image Placeholders in the Configuration Reference.
-
For each image role, click Choose File, find the image on your computer, and upload the file.
You can use the same image for all three roles, or you can upload a different placeholder image for each role.
-
When complete, click Save.
For information about image roles and recommended sizes, see Upload an image.