jpeg image color gets drastically changed after just ImageIO.read() and ImageIO.write()

后端 未结 2 680
忘掉有多难
忘掉有多难 2020-11-29 07:42

I have been using ImageIO.read() and ImageIO.write() methods in javax.imageio.ImageIO for reading and writing images, and I found that some images\' color gets changed weird

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 08:14

    seems a colorspace problem, imageIO try to do some encoding/decoding of the image but it seems to fail. Take a look here: Unable to read JPEG image using ImageIO.read(File file)

提交回复
热议问题