Legacy Knowledge Base
Published Jul. 2, 2025

Conversion process fails in Adaptive Media

Written By

Tímea Bihari

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

  • When I try to convert my images in Adaptive Media, the whole conversion process fails
  • I see this message in the console:
Caused by: java.lang.IllegalArgumentException: Unknown image type 0
at java.awt.image.BufferedImage.<init>(BufferedImage.java:501)
at com.liferay.portal.image.ImageToolImpl.doScale(ImageToolImpl.java:775)
at com.liferay.portal.image.ImageToolImpl.scale(ImageToolImpl.java:738)
at com.liferay.portal.kernel.image.ImageToolUtil.scale(ImageToolUtil.java:265)
at com.liferay.adaptive.media.image.internal.scaler.AMDefaultImageScaler.scaleImage(AMDefaultImageScaler.java:61)
... 13 more

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1

Resolution

  • You probably have some files with TIF extension, which Adaptive Media cannot process
  • The default Adaptive Media configuration contains TIFF MIME types, however, AM should not convert these
  • Change AM configuration in order to skip these files:
    1. Go to Control Panel > Configuration > System Settings > Adaptive Media
    2. Under the Images tab, remove the following entries:
      image/tiff
      image/x-tiff
    3. Save the configurations

Additional Information

  • The default configuration will be changed: LPS-93086
Did this article resolve your issue ?

Legacy Knowledge Base