WordPress / WordPress/performance
Image Placeholders not honoring image resizing
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 461
- Forks
- 165
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 28
Description
Bug Description
An average color of the image is shown automatically as the background of the image widget (at least in Elementor) when size is not Fill.
Steps to reproduce
Add an Image widget in Elementor
Resize the image via max-width or height in the Style tab.
Check the image in the homepage, the sides will show a background color depending on the aspect ratio of the image widget.
Screenshots
Additional Context
- PHP Version: 8.4.19
- OS: Windows 11
- Browser: Chrome 146.0.7680.165
- Plugin Version: 1.0.0-beta5
- Device: PC
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with an Image widget in Elementor, resizing the image through max-width or height in the Style tab. Trace the image placeholder behavior for non-Fill sizing and verify that the homepage no longer shows side background color caused by the widget's aspect ratio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100