Legacy Knowledge Base
公開されました Jul. 2, 2025

アダプティブメディアで変換処理に失敗する

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.

問題

  • Adaptive Mediaで画像を変換しようとすると、変換プロセス全体が失敗します
  • コンソールに以下のメッセージが表示されています。
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

環境

  • Liferay DXP 7.0
  • Liferay DXP 7.1

解決

  • おそらく、アダプティブメディアが処理できないTIF拡張子のファイルがいくつかあります
  • デフォルトのアダプティブメディア構成には TIFF MIME タイプが含まれていますが、AM はこれらを変換すべきではありません
  • これらのファイルをスキップするためにAMの設定を変更します
    1. コントロールパネルに移動 > 設定 > システム設定 > アダプティブ メディア
    2. 画像 タブで、以下のエントリを削除します
      image/tiff
      image/x-tiff
    3. 設定を保存します

追加情報

  • デフォルトの設定が変わります: LPS-93086
Did this article resolve your issue ?

Legacy Knowledge Base