Legacy Knowledge Base
Published Jul. 2, 2025

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

Written By

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

Did this article resolve your issue ?

Legacy Knowledge Base