# mattt/AnimatedGIFImageSerialization

Complete Animated GIF Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling

Repository: https://github.com/mattt/AnimatedGIFImageSerialization
Canonical: https://ross.abutalabs.com/products/animatedgifimageserialization
Language: Objective-C
License: MIT
License Family: permissive
Archived: true
Last push: 2019-07-06T14:55:26+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4544, "days_push": 2615, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1074, forks 99 (observed 2026-08-28T04:03:29.061686+00:00)

## What it is
An Objective-C library that decodes and encodes animated GIFs as UIImage objects on iOS, following NSJSONSerialization-style API conventions. It optionally swizzles UIImage initializers so animated GIFs load automatically, though it is no longer maintained in favor of CGAnimateImageAtURLWithBlock.

## Use cases
- display animated gif images in a uiimageview on ios
- decode animated gif data into uiimage
- encode a uiimage as an animated gif file
- load animated gifs with uiimage imagenamed

## When to choose
- you must support iOS versions older than 13 where CGAnimateImageAtURLWithBlock is unavailable
- you need NSJSONSerialization-style GIF encoding/decoding in Objective-C

## When to avoid
- you target iOS 13+ or macOS 10.15+, where Apple's CGAnimateImageAtURLWithBlock is the supported solution
- you want an actively maintained library
- you dislike method swizzling in your codebase

## Facets
- artifact type: library
- maturity: abandoned
- function: image-processing, serialization
- domain: image-processing, mobile-development
- platform: -
- tags: animated-gif, objective-c, uiimage, method-swizzling, deprecated, ios, macos, swift

## Member repositories
- mattt/AnimatedGIFImageSerialization (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.061686+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:32.452139+00:00, confidence not recorded.
  - readme: https://github.com/mattt/AnimatedGIFImageSerialization (fetched 2026-08-28T04:03:29.061686+00:00, sha c739413032e4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
