adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
730 stars 736 forks source link

How to extend the core component teaser to accept webp format images? #2566

Open AaronDempwolff-Tyson opened 1 year ago

AaronDempwolff-Tyson commented 1 year ago

Hello, what happens is that I want to allow the core teaser component to allow the user to upload images in webp format (convert the core component to proxy component).

I see that exists the option Enable Web Optimized Images to convert the assets into webp, but I don't want to convert to webp, I want that my users can upload webp assets.

The core component is as default, the only thing I modified was the _cq_dialog and the .content.xml file.

<column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container">

This already allows me to upload the image in webp format, the problem is that the image isn't rendered, that is, it's not displayed, although the file is uploaded correctly and the webp file is in the html code.

image

If I open the url of the webp file with the browser's console I get the following error:

image

Is it necessary to modify another file to allow viewing of the webp file or what could be the error?