[OpenJDK 2D-Dev] <OpenJDK 2D-Dev> Review request for JDK - 8041501 : ImageIO reader is not capable of reading JPEGs without JFIF header

Phil Race philip.race at oracle.com
Thu Jan 21 18:03:38 UTC 2016


Approved. Please send a request to commit this change to the 8u-dev list.

-phil.

On 01/20/2016 10:20 PM, Jayathirth D V wrote:
>
> Hi,
>
> This is backport of the fix that is already merged into JDK9.
>
> _Please review the fix in JDK8u:_
>
> Bug : https://bugs.openjdk.java.net/browse/JDK-8041501
>
> Webrev : http://cr.openjdk.java.net/~jdv/8041501.8u/webrev.00/ 
> <http://cr.openjdk.java.net/%7Ejdv/8041501.8u/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
>

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


More information about the 2d-dev mailing list