Skip to content

Remove hard-coded isTiny() result for intrinsic layout #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 29, 2021

Conversation

schlessera
Copy link
Collaborator

There is an error in the isTiny() where the width & height are ignored for an intrinsic layout. This is not correct, as for the intrinsic layout, the image is shrinking to fit the container, but can only grow up to the maximum of its width and height attributes. So if these are below the isTiny() threshold, it should be flagged accordingly.

@schlessera schlessera added the Bug Something isn't working label Mar 29, 2021
@schlessera schlessera added this to the 0.3.0 milestone Mar 29, 2021
@schlessera schlessera merged commit 227563f into main Mar 29, 2021
@schlessera schlessera deleted the fix/hero-image-detection-chooses-tiny-image branch March 29, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants