FriendsOfShopware / FroshWebP

WebP Support for Shopware
MIT License
35 stars 25 forks source link

WebP for CSS background-image property and HTML img tags of custom code elements #92

Closed ghost closed 3 years ago

ghost commented 3 years ago

Currently the plugin is working as expected, but not for the CSS background-image property and the HTML img tags in custom code elements. Is there a way to add this functionality?


Derzeit funktioniert das Plugin wie erwartet, aber nicht für die CSS background-image-Eigenschaft und die HTML-img-Tags in Custom Code-Elementen. Gibt es eine Möglichkeit, diese Funktionalität hinzuzufügen?

DeubaIT commented 3 years ago

I have to add to the request the following elements, that are not supportet:

shyim commented 3 years ago

I have no clue how to do that automatically in custom elements. If you have an idea of how to solve it. let me know

shyim commented 3 years ago

When you want to deliver a webp image. You need to create the picture element by own in the custom code element. The URL is the same but with webp extension

ghost commented 3 years ago

Thanks a lot for you help, I will try your suggestions!