RFR: 8351108: ImageIO.write(..) fails with exception when writing JPEG with IndexColorModel

Phil Race prr at openjdk.org
Wed Mar 5 20:44:56 UTC 2025


On Tue, 4 Mar 2025 06:51:54 GMT, Jeremy <duke at openjdk.org> wrote:

> Previously ImageTypeSpecifier treated all TYPE_BYTE_INDEXED as if they were opaque.
> 
> In this ticket's case: an ImageWriter received the wrong ImageTypeSpecifier and mistakenly indicated it *could* support a BufferedImage. But when the actual BufferedImage arrived (which was translucent), the ImageWriter threw an exception.
> 
> Instead:
> Now the ImageTypeSpecifier accurately describes the given BufferedImage.

testing looks good.

-------------

Marked as reviewed by prr (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23884#pullrequestreview-2662440140


More information about the client-libs-dev mailing list