Preview is not generated for .webp files in Document and Media

Issue

  • The preview is not getting generated for all the '.webp' files in Document and Media.
    1. Follow this guide and enable the use of WEBP 
    2. Navigate to Content & Data > Documents and Media
    3. Upload an image in WEBP format
    4. Click the image title to check the preview

    preview is not getting generated with the below error in the logs:

    2022-08-04 10:46:46.646 WARN  [liferay/adaptive_media_processor-3][AMMessageListener:90] com.liferay.adaptive.media.exception.AMRuntimeException$IOException: Unable to scale file entry 37851 to match adaptive media configuration Preview-1000x0
    com.liferay.adaptive.media.exception.AMRuntimeException$IOException: Unable to scale file entry 37851 to match adaptive media configuration Preview-1000x0
    	at com.liferay.adaptive.media.image.internal.scaler.AMDefaultImageScaler.scaleImage(AMDefaultImageScaler.java:71)
    	at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:118)
    	at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:73)
    	at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:44)
    	at com.liferay.adaptive.media.web.internal.messaging.AMProcessorCommand$2.execute(AMProcessorCommand.java:43)
    	at com.liferay.adaptive.media.web.internal.messaging.AMMessageListener.doReceive(AMMessageListener.java:80)

Environment

  • Liferay DXP 7.3

Resolution

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0