> 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`)

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/33701/files
  - new: https://git.openjdk.org/jdk/pull/33701/files/846ec3b4..b9dea664

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=33701&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=33701&range=00-01

  Stats: 9 lines in 1 file changed: 8 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/33701.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33701/head:pull/33701

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

Reply via email to