Skip to content

[Bug]: pasting an animated GIF on iOS flattens it to PNG #37142

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Copy an animated GIF from an iOS app that offers the GIF through an NSItemProvider.
  2. Paste into the native T3 Code composer.
  3. Inspect the attachment: it is a static PNG rather than the original animated GIF.

The deterministic native repro registers GIF bytes on a real NSItemProvider, calls the production composer paste entry point, and inspects its emitted file. Run it with onmac run -- onmac-job bash apps/mobile/modules/t3-composer-editor/tests/run-ios.sh after applying the regression test from the linked fix.

Expected behavior

Pasting a GIF preserves its original animated data when the provider supplies it and the attachment is within the existing byte limit, as selecting it with the image picker does.

Actual behavior

The native provider path decodes to UIImage and encodes PNG, discarding animation.

Impact

Minor bug or occasional failure

Version or commit

Reproduced on upstream main at aaf5b9c. Bughunt and independent verifier previously confirmed at 2dc5ebd.

Environment

Native iOS composer; reproduced against real UIKit in the repository's Mac Catalyst test harness.

Logs or stack traces

The regression test fails on main because the pasted GIF attachment is PNG. It passes with the fix and verifies byte-for-byte GIF preservation alongside unchanged still-image PNG output.

Workaround

Use the image picker instead of pasting.

Activity

  1. added
    vouch:trusted
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions