Is there a 100% Java alternative to ImageIO for reading JPEG files?

后端 未结 3 1406
再見小時候
再見小時候 2020-12-02 18:01

We are using Java2D to resize photos uploaded to our website, but we run into an issue (a seemingly old one, cf.: http://forums.sun.com/thread.jspa?threadID=5425569) - a few

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 18:09

    Old post, but for future reference:

    Inspired by this question and links found here, I've written a JPEGImageReader plugin for ImageIO that supports JPEG images with these kind of "bad" ICC color profiles (the "issue" is the rendering intent in the ICC profile is incompatible with Java's ColorConvertOp). It's plain Java and does not require JAI.

    The source code and linked binary builds are freely available from the TwelveMonkeys project on GitHub.

提交回复
热议问题