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

Cannot process image: The background format is invalid. #39

Open
davidsotaabdd opened this issue Mar 22, 2022 · 0 comments
Open

Cannot process image: The background format is invalid. #39

davidsotaabdd opened this issue Mar 22, 2022 · 0 comments

Comments

@davidsotaabdd
Copy link

davidsotaabdd commented Mar 22, 2022

This happens because (at least on newer CMS versions) the colorpicker widget forces the color value to be uppercase and the validation rule for the background color is the following regex:

/^#([a-f0-9]{3}){1,2}$/

which need only be changed to one of:

/^#([a-fA-F0-9]{3}){1,2}$/ or /^#([a-f0-9]{3}){1,2}$/i

in the file classes/Resizer.php

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

No branches or pull requests

1 participant