legacy-knowledge-base
公開されました Jul. 2, 2025

Documents & Media で新しい Web コンテンツを作成するときに、エディターで画像拡張子 .webp を追加する方法

written-by

Georgel Pop

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

learn-legacy-article-disclaimer-text

問題

  • 新しい Web コンテンツの作成時にエディターで画像拡張子 .webp を追加できない

Environment

  • DXP7.0以上

解決策

  • ドキュメントとメディアで .webp 拡張子をアップロードして操作するには、次の 3 つの場所にこのタイプを追加するだけです。

    1. システム設定 > ドキュメントとメディア > アイテム セレクタ ビュー を有効な拡張子として .webp を追加すると、これらの設定により、このタイプの画像を選択してアップロードできます
    mceclip1.png
    mceclip0.png
    2. portal-ext.properties で、次のプロパティ dl.file.entry.preview.image.mime.types を追加します。これらの画像タイプをプレビュー ダイアログに表示するには、これらのプロパティが必要です。これにより、アップロード後に再度選択できるようになります。

    dl.file.entry.preview.image.mime.types=\
            image/bmp,\
            image/gif,\
            image/jpeg,\
            image/pjpeg,\
            image/png,\
            image/tiff,\
            image/x-citrix-jpeg,\
            image/x-citrix-png,\
            image/x-ms-bmp,\
            image/x-png,\
            image/x-tiff,\
            image/webp
    mceclip2.png

    3. システム設定 > アダプティブ メディア > イメージに移動し、サポートされている MIME タイプ image/webp として追加して、アダプティブ メディアがそれらを処理および操作する有効なタイプとして認識できるようにします (アダプティブ メディアがまだ存在しないため、DXP 7.0 では必要ありません)。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base