{"id":17702628,"url":"https://github.com/friendlymatthew/gif","last_synced_at":"2026-02-08T15:33:32.128Z","repository":{"id":257827581,"uuid":"872110231","full_name":"friendlymatthew/gif","owner":"friendlymatthew","description":"GIF parser and renderer.","archived":false,"fork":false,"pushed_at":"2024-11-02T21:42:37.000Z","size":82902,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T10:19:27.759Z","etag":null,"topics":["gif"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friendlymatthew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-13T19:58:34.000Z","updated_at":"2025-08-08T23:14:06.000Z","dependencies_parsed_at":"2024-10-26T02:41:26.426Z","dependency_job_id":null,"html_url":"https://github.com/friendlymatthew/gif","commit_stats":null,"previous_names":["friendlymatthew/jif","friendlymatthew/gif"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/friendlymatthew/gif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fgif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fgif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fgif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fgif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendlymatthew","download_url":"https://codeload.github.com/friendlymatthew/gif/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fgif/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29235335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gif"],"created_at":"2024-10-24T19:08:30.480Z","updated_at":"2026-02-08T15:33:32.099Z","avatar_url":"https://github.com/friendlymatthew.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gif\n\nThis crate aims to provide an interface that parses and decompresses GIF files. It exposes a simple API with 2\nfunctions: one for parsing bytes into a compressed GIF data stream, and another for decompressing the stream into a list\nof image frames.\n\nThis repository also contains a crate to render GIFs. It provides a command-line executable that\nuses [`minifb`](https://github.com/emoon/rust_minifb) to render pixels.\n\n`gif` aims to decode any GIF from [GIPHY](https://giphy.com). Any deviation from Giphy's rendering should be\nconsidered a bug.\n\n## Grammar\n\n### Legend\n\nThe following legend defines the symbols used in this grammar:\n\n| Symbol | Definition               |\n|--------|--------------------------|\n| `\u003c\u003e`   | grammar word             |\n| `::=`  | defines symbol           |\n| `*`    | zero or more occurrences |\n| `+`    | one or more occurrences  |\n| `\\|`   | alternate element        |\n| `[]`   | optional element         |\n\n### The Grammar\n\n`\u003cGIF Data Stream\u003e ::= Header \u003cLogical Screen\u003e \u003cData\u003e* Trailer`\n\n- `\u003cLogical Screen\u003e ::= Logical Screen Descriptor [Global Color Table]`\n- `\u003cData\u003e ::= \u003cGraphic Block\u003e | \u003cSpecial-Purpose Block\u003e`\n    - `\u003cGraphic Block\u003e ::= [Graphic Control Extension] \u003cGraphic-Rendering Block\u003e`\n        - `\u003cGraphic-Rendering Block\u003e ::= \u003cTable-Based Image\u003e | Plain Text Extension`\n            - `\u003cTable-Based Image\u003e ::= Image Descriptor [Local Color Table] Image Data`\n    - `\u003cSpecial-Purpose Block\u003e ::= Application Extension | Comment Extension`\n\n## Fuzz\n\n`gif` uses an [AFL](https://en.wikipedia.org/wiki/American_Fuzzy_Lop_(software)) fuzzer to assert correctness. GIFs that\ncrash are stored in `/tests` for the purpose of running\nintegration tests. To fuzz, simply run the `./fuzz.sh` shell script.\n\n## Profile\n\nThis project uses [samply](https://github.com/mstange/samply) to profile the code. Run `./profile.sh` to run a\nprofile. Make sure to pass in a GIF file.\n\nFor example:\n\n```bash\n./profile.sh ./sample_gifs/shrek.gif\n```\n\n## Reading\n\nhttps://www.matthewflickinger.com/lab/whatsinagif/bits_and_bytes.asp\u003cbr\u003e\nhttps://web.archive.org/web/20050217131148/http://www.danbbs.dk/~dino/whirlgif/lzw.html\u003cbr\u003e\nhttps://www.w3.org/Graphics/GIF/spec-gif89a.txt\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlymatthew%2Fgif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlymatthew%2Fgif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlymatthew%2Fgif/lists"}