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`) Change looks good to me. But test needs to be in awt/image folder. test/jdk/javax/imageio/plugins/gif/GIFLoopAnimationTest.java line 1: > 1: /* This test should be in awt/image test folder not in ImageIO. ------------- PR Review: https://git.openjdk.org/jdk/pull/33701#pullrequestreview-5936773099 PR Review Comment: https://git.openjdk.org/jdk/pull/33701#discussion_r4598296365
