Migrate intervention/gif to TypeScript

C Runtime-assisted · version 5.0.1

intervention/gif 5.0.1 is a PHP package released under the MIT license and requires PHP ^8.3. Pext migrates it to TypeScript; on Node.js, 87 of 109 PHPUnit tests pass (79.8%), with no failures and 22 errors. It has no tracked dependencies, and 1 tracked package depends on it.

PHP GIF Encoder/Decoder

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

79.8% of 109 tests passing (87 passed, 0 failed, 22 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The 5 test classes with the most failing tests on Node.js:

Test classFailing tests
SplitterTest8
BuilderTest6
DecoderTest3
GifDataStreamTest2
AnimationDecodingTest1

The remaining 2 failing tests are spread across other classes.

What “Runtime-assisted” means

Runs and passes most of its tests, with the Pext runtime doing visible work to preserve PHP behaviour.

Requirements

PHP
^8.3
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from intervention

Upstream

Version
5.0.1
License
MIT
Homepage
https://github.com/intervention/gif
Keywords
image, gd, gif, animation

Migrating a codebase that uses intervention/gif?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.