Withdrawn: 8356137: GifImageDecode can produce opaque image when disposal method changes
Jeremy Wood
duke at openjdk.org
Wed May 14 23:12:57 UTC 2025
On Mon, 5 May 2025 17:07:11 GMT, Jeremy Wood <duke at openjdk.org> wrote:
> This resolves a gif parsing bug where an unwanted opaque rectangle could appear under these conditions:
>
> 1. The disposal method for frames is 1 (meaning "do not dispose", aka "DISPOSAL_SAVE")
> 2. The transparent pixel is non-zero
> 3. There's more than one such consecutive frame
>
> Previously: the GifImageDecoder would leave the saved_image pixels as zero when they were supposed to be transparent. This works great if the transparent pixel index is zero, but it flood fills the background of your frame with the zeroeth color otherwise.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/25044
More information about the client-libs-dev
mailing list