- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Resized product images background
How the white background for resized product images (various thumbnails, for example) can be changed?
I have black background and horizontal aspect ratio and white stripes on all images looks not best...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Resized product images background
Workaround: in
$image->backgroundColor([0, 0, 0]);
protected $_backgroundColor = [0, 0, 0];
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Resized product images background
I'm doing this after every upgrade... stupid.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Resized product images background
Please see the background property of https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-images.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Resized product images background
Also, I found that only images "Color Type" with "RGB with Alpha" is resizing with a transparent background.
You can check whether your image colour type is "RGB with Alpha" by visiting http://fotoforensics.com and checking the metadata.
If it is not in "RGB with Alpha" color type you can convert the images using photoshop as below.
Then export the file using File -> Export -> Export As
Make sure you have below settings in the export screens.