On Mon, 16 Nov 2026 21:10:46 GMT, Alexey Ivanov <[email protected]> wrote:

>> If a GIF image contains one frame and the loop count isn't set to 1, it is 
>> still animated.
>> 
>> The GIF decoder starts the animation thread that decodes the single frame 
>> over and over again. The image itself looks static, but decoding consumes 
>> CPU and memory.
>> 
>> The proposed fix stops animating the image if it contains one frame only.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Alexey Ivanov has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Clarify the usage of `stoppingAnimation` (as well as `startingAnimation`)

Marked as reviewed by prr (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/33701#pullrequestreview-5927899814

Reply via email to