ImageIO.read illegal argument exception - raster bands/colour space components?

后端 未结 3 741
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 20:11

Apologies for the somewhat vague title, I can\'t work out what the keywords are here. The setup\'s quite simple, I\'m opening an image with

ImageIO.read(new          


        
3条回答
  •  太阳男子
    2020-12-14 20:34

    The error message is informative and indicates that the number of raster bands, as mentioned in the ICC color profile, seems to be incorrect. I used ImageMagick to strip the ICC profile from the image. ImageIO subsequently has no problems reading the images (~1k bad images). Hope that helps.

提交回复
热议问题