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

ImageList images cannot be WEBP or AVIF #39936

Closed
NicolasDerumigny opened this issue Feb 25, 2023 · 2 comments
Closed

ImageList images cannot be WEBP or AVIF #39936

NicolasDerumigny opened this issue Feb 25, 2023 · 2 comments

Comments

@NicolasDerumigny
Copy link

What needs to be fixed

Add webp and avif (or the media configured by the user in the global parameters) to here.

Why this should be fixed

Images cannot be chosen in WEBP or AVIF format with this field.

How would you fix it

Add $|\.webp$|\.avif to the string in libraries/src/Form/Field/ImagelistField.php

Side Effects expected

None

@chmst
Copy link
Contributor

chmst commented Feb 25, 2023

Thanks for your suggestion! As you already know how to resolve your request, would you like to make yourself a a PR for that? A more flexible solution could be replacing the hard coded list by a user defined list of allowed types.

@alikon
Copy link
Contributor

alikon commented Feb 26, 2023

closing as we have a pr #39942

@alikon alikon closed this as completed Feb 26, 2023
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

4 participants