In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
cmyk Image Processing ImageIO Error Unsupported Image Type How to solve, I believe many inexperienced people are helpless, for this reason this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
jdk javax.imageio.ImageIO images support RGB mode, if CMYK mode images appear, the following errors will appear:
javax.imageio.IIOException: Unsupported Image Type
1: Introduce packages from com.twelvemonkeys.imageio for types.
2: Examples of images in CMYK mode jpg:
maven:
com.twelvemonkeys.imageio imageio-jpeg 3.6
gradle
compile group: 'com.twelvemonkeys.imageio', name: 'imageio-tiff', version: '3.6'
imageio-core associated packages are automatically introduced
3: ImageIO will automatically find the relevant codec class and use it as long as the relevant jar package is added to the classpath, and jdk ImageIO or its upper interface is used normally.
4: Verify successful introduction or see which codecs ImageIO supports
Compare the supported types before and after the imported package and print the supported type code
for (int i = 0; i < ImageIO.getReaderFormatNames().length; i++) { System.out.println((i+1) + ":" + ImageIO.getReaderFormatNames()[i]);}
Other types of pictures appear as above errors, we also refer to the above method to find the corresponding package can be introduced.
com.twelvemonkeys.imageio imageio-tiff 3.6 com.twelvemonkeys.imageio imageio-bmp 3.6 com.twelvemonkeys.imageio imageio-psd 3.6 com.twelvemonkeys.imageio imageio-batik 3.6 After reading the above content, do you know how to solve cmyk ImageIO error Unsupported Image Type? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.