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

Fix inline background image url rewriting #5

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

DanielHudson2
Copy link
Member

This is to ensure any inline background image styles get rewritten to thumbor urls e.g. the cover block has a setting to fix the background position which turns it into an inline style rather than an image element

@DanielHudson2 DanielHudson2 added the bug Something isn't working label Dec 17, 2024
@DanielHudson2 DanielHudson2 self-assigned this Dec 17, 2024
@edjeavons
Copy link
Member

This tests perfectly for me.

At the moment we are asking Thumbor to return an optimised image at the original dims. Do you think we should put an upper limit on the dims of the optimised image (in case CMS users upload massive originals), or shall we trust that the website admin have already applied sensible upper limits on uploads?

@brettsmason brettsmason merged commit 8ad5821 into main Dec 18, 2024
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.

3 participants