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:
- Go to Control Panel > Configuration > System Settings > Adaptive Media
- Under the Images tab, remove the following entries:
image/tiff
image/x-tiff
- Save the configurations