Animated Gif Metadata

Here is some minimal JavaScript examples that will only extract the Application Extension Blocks where the `appId` is `"H2G2"` (and optionally an auth code if you want to be strict).

# Vanilla JavaScript (no dependencies)

This is the cut-down version of the earlier parser, but it filters *only* for `H2G2` App Extensions. See: - gifFile.html

# Usage 1. Select your `.gif` file. 2. If it contains an `H2G2` App Extension, the text content is printed. 3. If not, you'll see `"No H2G2 App Extension found"`.

https://david.codefish.club/assets/animated-gif-metadata/gifFile.html HEIGHT 50 gifFile.html

# gifuct-js (smaller code, library)** This uses the gifuct-js library to handle GIF parsing, then filters for `H2G2`.

# Usage * Same as above, but much less parsing code because `gifuct-js` does the heavy lifting. * Best if you’re okay with an extra \~13KB dependency.

animated-gif-metadata