[OpenJDK 2D-Dev] [9] RFR JDK-6294607: GIFWriter returns the same compression type twice

Jayathirth D V jayathirth.d.v at oracle.com
Tue Oct 4 11:39:06 UTC 2016



Please review the following fix in JDK9 at your convenience:


Bug : https://bugs.openjdk.java.net/browse/JDK-6294607 


Webrev : http://cr.openjdk.java.net/~jdv/6294607/webrev.00/ 


Issue : When we call ImageWriteParam.getCompressionTypes() for GIF it returns two compression types "LZW" &  "lzw".


Root cause : Basically we support only LZW compression for GIF. In ImageWriteParam, there are many places in specification where we mention about multiple compression types. In case of GIF, since it returns same compression type twice it would be misleading.


Solution : Update GIFImageWriter to return only one compression type string.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20161004/3e8493d5/attachment.html>

More information about the 2d-dev mailing list