Hi,

 

This is backport of fix from JDK 9 bug : 
https://bugs.openjdk.java.net/browse/JDK-8041501 to JDK 8u. Changes in JDK9 are 
already checked in.

 

Please review the fix:

 

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

 

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

 

Issue : Pink discoloration when we read JPEG images without JFIF & EXIF header 
and having no subsampling.

 

Root cause : We are overriding JPEG color space set in IJG library at 
imageioJPEG.c without checking component ID's properly when JFIF & EXIF are not 
there. Decision to change color space is solely done consulting sampling 
factors.

 

Solution : Added extra check to verify component ID's also before changing 
color space determined by IJG library when there is no JFIF & EXIF header.

 

Thanks,

Jay

 

Reply via email to