Legacy Knowledge Base
Published Jul. 2, 2025

The .heic file format is not supported in profile image

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • Issues while uploading a profile photo taken with an iPhone camera since the extension is .heic, which causes errors. Even if tried to upload via control panel options, the issue may persist with the same extension files.
    1) Start Clean instance of Liferay 7.2
    2) Update portal-ext.properties with this value
    mime.types.web.images=image/gif,image/jpeg,image/pjpeg,image/png,image/x-png,image/heic
    3) Navigate to 'Users and Organizations'
    4) Create one user and save it
    5) Edit this user by selecting the 'Change' option to set the user profile with a .heic image
    Expected behavior: The chosen image is saved and shown on the user's profile.
    Observed behavior: Received error message on UI: "Please enter a file with a valid type"

Environment

  • Liferay DXP 7.2 Fix Pack 14

Resolution

  • The observed behavior is a known Liferay DXP bug which has been addressed by LPS-154652
  • If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to installation of the hotfix in the respective environment.

Additional Information

  • The .heic extension is limited in terms of product. Therefore the Portal needs to use external services such as ImageMagick. In this case, please make sure the external service is installed properly.
  • By running the following command, user can see whether delegates should have the .heic extension.
    • C:\Users\Kanchan>convert --version
      Version: ImageMagick 7.1.0-36 Q16-HDRI x64 be0bdc3:20220530 https://imagemagick.org
      Copyright: (C) 1999 ImageMagick Studio LLC
      License: https://imagemagick.org/script/license.php
      Features: Cipher DPC HDRI Modules OpenCL OpenMP(2.0)
      Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png ps raqm raw rsvg tiff webp xml zip zlib
      Compiler: Visual Studio 2022 (193231329)
Did this article resolve your issue ?

Legacy Knowledge Base