Skip to content

Conversation

@westonruter
Copy link
Member

Fixes #2098

There is an edge case that makes the current sizes computation unreliable in Image Prioritizer. Therefore, the logic needs to be removed, at least until a better alternative can be determined. Nevertheless, we now have sizes computation in Enhanced Responsive Images which can make this redundant anyway.

This PR also introduces npm run update-test-case-snapshots which can be used to move the actual.html files on top of the expected.html files in the test-cases directories where snapshot testing is used. This command was run to update the snapshots in 8cf0377 with the removal of the compute_sizes() method.

Lastly, this PR adds a link to an "Optimization Detective Default Disabled" plugin which was used to help troubleshoot this issue.

@westonruter westonruter added [Type] Bug An existing feature is broken [Plugin] Image Prioritizer Issues for the Image Prioritizer plugin (dependent on Optimization Detective) labels Aug 3, 2025
@github-actions
Copy link

github-actions bot commented Aug 3, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: ShyamGadde <[email protected]>
Co-authored-by: da5nsy <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@westonruter westonruter added this to the image-prioritizer n.e.x.t milestone Aug 3, 2025
@westonruter westonruter force-pushed the fix/image-prioritizer-sizes branch from 290a500 to 3d220dd Compare August 3, 2025 23:11
@westonruter
Copy link
Member Author

Build for testing: image-prioritizer.zip

Copy link
Contributor

@ShyamGadde ShyamGadde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the changes locally and didn’t run into any issues in the areas I could check, all seems good 👍

@westonruter westonruter merged commit f4c1bb9 into trunk Aug 5, 2025
17 checks passed
@westonruter westonruter deleted the fix/image-prioritizer-sizes branch August 5, 2025 17:07
@westonruter
Copy link
Member Author

Another build for testing: image-prioritizer.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Image Prioritizer Issues for the Image Prioritizer plugin (dependent on Optimization Detective) [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logo size broken by Image Prioritizer

3 participants