Skip to content

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

@davidsotaabdd

Description

@davidsotaabdd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions