Skip to content

Conversation

@mihalikv
Copy link

@mihalikv mihalikv commented Jan 8, 2026

Animated GIFs processed with the background processor (and other processors) were losing the loop attribute, causing them to loop only once instead of preserving the original loop count.

Changes:

  • Preserve loop attribute in FrameAware.apply_to_frames()
  • Preserve loop attribute in colorspace processor when replace_alpha is used with animated images
  • Preserve loop attribute in background processor for animated images
  • Add test_background_loop_preserved() to verify loop preservation

Fixes issue where animated GIFs would ignore their loop setting and only loop once after processing with the background processor.

Animated GIFs processed with the background processor (and other
processors) were losing the loop attribute, causing them to loop only
once instead of preserving the original loop count.

Changes:
- Preserve loop attribute in FrameAware.apply_to_frames()
- Preserve loop attribute in colorspace processor when replace_alpha
  is used with animated images
- Preserve loop attribute in background processor for animated images
- Add test_background_loop_preserved() to verify loop preservation

Fixes issue where animated GIFs would ignore their loop setting and
only loop once after processing with the background processor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant