Skip to content
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

Do not add srcset and sizes if image is cropped #817

Closed
razvanaldea89 opened this issue Jul 11, 2023 · 0 comments
Closed

Do not add srcset and sizes if image is cropped #817

razvanaldea89 opened this issue Jul 11, 2023 · 0 comments

Comments

@razvanaldea89
Copy link
Contributor

Describe the bug
If the image is cropped we should not add the srcset and sizes, as it could behave incorrect and display the wrong image in the gallery, especially with the SpeedUp extensions. So, we need to check if the image size used is custom and if the crop functionality is turned on.

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

No branches or pull requests

1 participant