[OpenJDK 2D-Dev] <AWT Dev> Duplicated (or better multiplicated) image-decoder resolvers in openjdk
Sergey.Bylokhov at oracle.com
Wed Nov 18 17:11:36 UTC 2015
This question also related to 2d area(cc)
I think it is possible to use the PNGImageReader(spi) instead of
sun.awt.PNGImageDecoder, which will allow automatically handle the
nondefault image formats. But as far as I know there are no plan to do
it in jdk9.
On 30.10.15 16:13, Jiri Vanek wrote:
> Recently I was doing ico imagereader-spi provider for icedtea-web
> (which is javaws (and plugin) implementation for openjdk)
> Yes, ico is stupid, but is in web standards so having its support is
> just natural. However, providing spi did not solved the problem i was
> bugged for.
> After small debugging why, I found that eg SunToolkit.createImage and
> relatives - which are quite heavily used, do not honour ImageIO SPIs and
> are going by its own way:
> for file
> for stream
> Well maybe its legacy bourden, but it is reimplementing what image SPIs
> providers via (apis canDecodeInput) do. Long story short -
> reimplementing wheel and duplicated (very duplicated) code.
> I wonted to ask, if there are any plans in jdk9 to fix this. If no, what
> can I do to make it happen.
Best regards, Sergey.
More information about the 2d-dev