WordPress / WordPress/performance
Lots of broken images after regenerate thumbnails
Open
Nobody has claimed this yet.
[Plugin] Modern Image Formats
[Type] Bug
- Dominant language
- PHP
- Stars
- 461
- Forks
- 165
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 28
Description
Bug Description
Steps to reproduce
- Performance Plugin 3.3.0
- Modern Images 2.0.2
- Website with about 2500 images
- Regenerate thumbnails with:
wp media regenerate
Screenshots
About 7-10% of the images are missing. The broken images try load a image with DSC05480-600x432.webp but the generated image is DSC05480-jpg-600x432.webp.
Additional Context
- PHP Version:
- OS: 8.2
- Browser: chrome, safari
- Plugin Version: 3.3.0
- Device: all
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 Performance Plugin 3.3.0, Modern Images 2.0.2, and wp media regenerate on a site with many images. Trace where the generated filename and the referenced thumbnail filename are formed, focusing on the .webp versus -jpg- mismatch. Done means regenerated images are referenced correctly and no broken thumbnails remain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100