Issue
- When rendering the image for my user, I noticed that the webp file of the page has a considerably increased size
- Is there something that can be done so that it doesn't happen?
Environment
- Liferay DXP 7.4
Resolution
-
First we need to understand that the .webp format is not supported by default by Liferay.
To use it, it is necessary to make some adjustments in the types of formats accepted and in the adaptive media so that the files are generated correctly and can be handled, according to this guide: How to add image extension .webp on editor when creating a new web content in Documents & Media -
Based on this premise, we understand that this ''optimization'' that the file performs when rendering the pages for the user is an expected behavior of our product when using this format.
Additional Information
- Can a WebP image grow larger than its source image? (Google Developers Article)
- There are already two Feature Requests in progress to formalize Liferay's support for the .webp format: (LPS-135934 / LPS-102121)
- I recommend following them to follow their progress and implementation in a future release.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión