How to enable support for additional image formats in HCL Web Content Manager
Applies to
HCL Digital Experience v8.5 and higher
Introduction
HCL Digital Experience (DX) does not support certain image formats out-of-the-box. This article describes the steps to configure the HCL DX server to recognize JPEG 2000 (JP2), JPEG XR (JXR), Scalable Vector Graphics (SVG), and Web Picture (WEBP) in the HCL Web Content Manager.
Instructions
JP2
For JP2 images, refer to the following steps:
-
Log in to the WebSphere Integrated Solutions Console as an administrator.
-
Navigate to Resources > Resource Environment > Resource Environment Providers > WCM WCMConfig_Service > Custom properties.
-
Create the
extensiontype.jp2property:- Click New....
- Under Name, enter
extensiontype.jp2. - Under Value, enter
image/jp2. - Click Apply.
-
Create or modify the
imageresourcecmpnt.allowedmimetypesproperty:If the property does not exist:
- Click New....
- Under Name, enter
imageresourcecmpnt.allowedmimetypes. - Under Value, enter all required formats including
image/svg+xml, for example:imageresourcecmpnt.allowedmimetypes=image/gif,image/png,image/jpeg,image/jpg,image/jpe,image/jfif,image/bmp,image/x-bmp,image/x-bitmap,image/x-xbitmap,image/x-win-bitmap,image/x-windows-bmp,image/ms-bmp,image/x-ms-bmp,application/bmp,application/x-bmp,application/x-win-bitmap,image/ico,image/tiff,image/tif,image/webp,image/jp2+xml - Click Apply.
If the property already exists:
- Locate and click imageresourcecmpnt.allowedmimetypes.
- Under Value, enter
image/jp2. - Click Apply.
-
Modify the
image.initialFileExtensionsproperty:- Locate and click image.initialFileExtensions.
- Under Value, add
JP2to the existing comma-separated list of extensions. - Click Apply.
-
Click Save at the top of the console messages.
-
Configure the MIME type for JP2:
- Navigate to Environment > Virtual hosts.
- Click the virtual host where WebSphere Portal is installed (for example, default_host).
- Under Additional Properties, click MIME Types.
- Check the list of MIME types to ensure
image/jp2is listed. - If
image/jp2is not listed, create it:- Click New....
- Under MIME Type, enter
image/jp2. - Under Extensions, enter
jp2. - Click OK.
- Click Save at the top of the console messages.
-
Restart the WebSphere Application Server.
JXR
For JXR images, refer to the following steps:
-
Log in to the WebSphere Integrated Solutions Console as an administrator.
-
Navigate to Resources > Resource Environment > Resource Environment Providers > WCM WCMConfig_Service > Custom properties.
-
Create the
extensiontype.jxrproperty:- Click New....
- Under Name, enter
extensiontype.jxr. - Under Value, enter
image/jxr. - Click Apply.
-
Create or modify the
imageresourcecmpnt.allowedmimetypesproperty:If the property does not exist:
- Click New....
- Under Name, enter
imageresourcecmpnt.allowedmimetypes. - Under Value, enter all required formats including
image/svg+xml, for example:imageresourcecmpnt.allowedmimetypes=image/gif,image/png,image/jpeg,image/jpg,image/jpe,image/jfif,image/bmp,image/x-bmp,image/x-bitmap,image/x-xbitmap,image/x-win-bitmap,image/x-windows-bmp,image/ms-bmp,image/x-ms-bmp,application/bmp,application/x-bmp,application/x-win-bitmap,image/ico,image/tiff,image/tif,image/webp,image/jxr+xml - Click Apply.
If the property already exists:
- Locate and click imageresourcecmpnt.allowedmimetypes.
- Under Value, enter
image/jxr. - Click Apply.
-
Modify the
image.initialFileExtensionsproperty:- Locate and click image.initialFileExtensions.
- Under Value, add
JXRto the existing comma-separated list of extensions. - Click Apply.
-
Click Save at the top of the console messages.
-
Configure the MIME type for JXR:
- Navigate to Environment > Virtual hosts.
- Click the virtual host where WebSphere Portal is installed (for example, default_host).
- Under Additional Properties, click MIME Types.
- Check the list of MIME types to ensure
image/jxris listed. - If
image/jxris not listed, create it:- Click New....
- Under MIME Type, enter
image/jxr. - Under Extensions, enter
jxr. - Click OK.
- Click Save at the top of the console messages.
-
Restart the WebSphere Application Server.
SVG
For SVG images, refer to the following steps:
-
Log in to the WebSphere Integrated Solutions Console as an administrator.
-
Navigate to Resources > Resource Environment > Resource Environment Providers > WCM WCMConfig_Service > Custom properties.
-
Create the
extensiontype.svgproperty:- Click New....
- Under Name, enter
extensiontype.svg. - Under Value, enter
image/svg+xml. - Click Apply.
-
Create or modify the
imageresourcecmpnt.allowedmimetypesproperty:If the property does not exist:
- Click New....
- Under Name, enter
imageresourcecmpnt.allowedmimetypes. - Under Value, enter all required formats including
image/svg+xml, for example:imageresourcecmpnt.allowedmimetypes=image/gif,image/png,image/jpeg,image/jpg,image/jpe,image/jfif,image/bmp,image/x-bmp,image/x-bitmap,image/x-xbitmap,image/x-win-bitmap,image/x-windows-bmp,image/ms-bmp,image/x-ms-bmp,application/bmp,application/x-bmp,application/x-win-bitmap,image/ico,image/tiff,image/tif,image/webp,image/svg+xml - Click Apply.
If the property already exists:
- Locate and click imageresourcecmpnt.allowedmimetypes.
- Under Value, enter
image/svg+xml. - Click Apply.
-
Modify the
image.initialFileExtensionsproperty:- Locate and click image.initialFileExtensions.
- Under Value, add
SVGto the existing comma-separated list of extensions. - Click Apply.
-
Click Save at the top of the console messages.
-
Configure the MIME type for SVG:
- Navigate to Environment > Virtual hosts.
- Click the virtual host where WebSphere Portal is installed (for example, default_host).
- Under Additional Properties, click MIME Types.
- Check the list of MIME types to ensure
image/svg+xmlis listed. - If
image/svg+xmlis not listed, create it:- Click New....
- Under MIME Type, enter
image/svg+xml. - Under Extensions, enter
svg svgz. - Click OK.
- Click Save at the top of the console messages.
-
Restart the WebSphere Application Server.
WEBP
For WEBP images, refer to the following steps:
-
Log in to the WebSphere Integrated Solutions Console as an administrator.
-
Navigate to Resources > Resource Environment > Resource Environment Providers > WCM WCMConfig_Service > Custom properties.
-
Create the
extensiontype.webpproperty:- Click New....
- Under Name, enter
extensiontype.webp. - Under Value, enter
image/webp. - Click Apply.
-
Create or modify the
imageresourcecmpnt.allowedmimetypesproperty:If the property does not exist:
- Click New....
- Under Name, enter
imageresourcecmpnt.allowedmimetypes. - Under Value, enter
image/webp. - Click Apply.
If the property already exists:
- Locate and click imageresourcecmpnt.allowedmimetypes.
-
Under Value, enter all required formats including
image/svg+xml, for example:imageresourcecmpnt.allowedmimetypes=image/gif,image/png,image/jpeg,image/jpg,image/jpe,image/jfif,image/bmp,image/x-bmp,image/x-bitmap,image/x-xbitmap,image/x-win-bitmap,image/x-windows-bmp,image/ms-bmp,image/x-ms-bmp,application/bmp,application/x-bmp,application/x-win-bitmap,image/ico,image/tiff,image/tif,image/webp,image/webp+xml -
Click Apply.
-
Modify the
image.initialFileExtensionsproperty:- Locate and click image.initialFileExtensions.
- Under Value, add
WEBPto the existing comma-separated list of extensions. - Click Apply.
-
Click Save at the top of the console messages.
-
Configure the MIME type for WEBP:
- Navigate to Environment > Virtual hosts.
- Click the virtual host where WebSphere Portal is installed (for example, default_host).
- Under Additional Properties, click MIME Types.
- Check the list of MIME types to ensure
image/webpis listed. - If
image/webpis not listed, create it:- Click New....
- Under MIME Type, enter
image/webp. - Under Extensions, enter
webp. - Click OK.
- Click Save at the top of the console messages.
-
Restart the WebSphere Application Server.