On Tue, 4 Mar 2025 06:51:54 GMT, Jeremy Wood <d...@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.

This pull request has now been integrated.

Changeset: c18494d3
Author:    Jeremy Wood <micklen...@gmail.com>
URL:       
https://git.openjdk.org/jdk/commit/c18494d3c9eebd9d97d95fbca712d59ccab2f124
Stats:     89 lines in 2 files changed: 87 ins; 0 del; 2 mod

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

Reviewed-by: aivanov, prr, azvegint

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

PR: https://git.openjdk.org/jdk/pull/23884

Reply via email to