{"id":25735487,"url":"https://github.com/JuliaIO/GIFImages.jl","last_synced_at":"2025-02-26T05:23:08.580Z","repository":{"id":39642014,"uuid":"497333418","full_name":"JuliaIO/GIFImages.jl","owner":"JuliaIO","description":"Provides Gif support in Julia using LibGif","archived":false,"fork":false,"pushed_at":"2023-05-02T00:36:40.000Z","size":179,"stargazers_count":12,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-23T16:46:44.388Z","etag":null,"topics":["gif","hacktoberfest","julia"],"latest_commit_sha":null,"homepage":"https://ashwani-rathee.github.io/GIFImages.jl/dev/","language":"Julia","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/JuliaIO.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}},"created_at":"2022-05-28T13:59:07.000Z","updated_at":"2023-09-02T16:07:48.000Z","dependencies_parsed_at":"2024-11-08T12:24:37.231Z","dependency_job_id":"98baae3e-ca46-4796-a3b5-c86071a07f85","html_url":"https://github.com/JuliaIO/GIFImages.jl","commit_stats":null,"previous_names":["ashwani-rathee/gifimages.jl"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaIO%2FGIFImages.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaIO%2FGIFImages.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaIO%2FGIFImages.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaIO%2FGIFImages.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaIO","download_url":"https://codeload.github.com/JuliaIO/GIFImages.jl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240796267,"owners_count":19858983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","hacktoberfest","julia"],"created_at":"2025-02-26T05:23:03.082Z","updated_at":"2025-02-26T05:23:08.479Z","avatar_url":"https://github.com/JuliaIO.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n![Link](https://s4.gifyu.com/images/GIFImages.jl-1.gif)\n\n---\nGIFImages.jl provides support for decoding and encoding GIF images by wrapping LibGif. GIF(Graphics Interchange Format) supports up to 8 bits per pixel for each image, allowing a single image to reference its own palette of up to 256 different colors chosen from the 24-bit RGB color space. It also supports animations and allows a separate palette which are known as local colormap of up to 256 colors for each frame. GIF is palette based, is very widely used and is a loseless data compression format.\n\n[![Docs-dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://ashwani-rathee.github.io/GIFImages.jl) [![Slack](https://img.shields.io/badge/chat-slack-e01e5a)](https://join.slack.com/t/julialang/shared_invite/zt-1hxxb5ryp-Ts_egJ7FRN2muQ7nkTtCNQ) [![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](https://opensource.org/licenses/MIT) [![Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/GIFImages)](https://pkgs.genieframework.com?packages=GIFImages)\n\n### Installation\n\nIf you have not yet installed Julia, please follow the [instructions](https://julialang.org/downloads/platform/) for your operating system. \n\nStable Version\n```julia\n# Enter ']' from the REPL to enter Pkg mode.\npkg\u003e add GIFImages.jl\n```\n\nDev Version\n```julia\nusing Pkg\n# Enter ']' from the REPL to enter Pkg mode.\npkg\u003e add https://github.com/ashwani-rathee/GIFImages.jl.git\n```\n\n### Usage \nFor decoding purposes, GIFImages.jl currently supports `gif_decode` which \ndecode the GIF image as colorant matrix. The source data needs to be a filename.\n\n#### Arguments\n- `filepath::AbstractString` : Path to the gif file\n- `use_localpalette::Bool=false` : While decoding, using this argument use of local colormap or global colormap for a particular slice can be specified. Gif files are palette based and have a global colormap(max `256 colors`) but slices/images in gif can have their own local colormap specific to a particular slice/image. These colormap can be used to decode a image if `use_localpalette` as `true`.\n\n#### Examples\n```jl\njulia\u003e using GIFImages, Downloads\n\njulia\u003e path = \"test/data/fire.gif\"\n\"test/data/fire.gif\"\n\njulia\u003e img = gif_decode(path)\n60×30×33 Array{RGB{N0f8},3} with eltype RGB{N0f8}\n```\n\n---\nFor encoding, GIFImages.jl provides `gif_encode` which encode the GIF colorant matrix to file. \n\n#### Arguments\n- `filepath` : Name of the file to which image is written.\n- `img` : 3D GIF colorant matrix which has structure of height* width * numofimages and all the images are present as slices of the 3D matrix \n- `colormapnum` : Specifies the number of colors to be used for the global colormap\n\n#### Examples\n```jl\njulia\u003e using GIFImages, Downloads\n\njulia\u003e path = \"test/data/fire.gif\"\n\"test/data/fire.gif\"\n\njulia\u003e img = gif_decode(path)\n60×30×33 Array{RGB{N0f8},3} with eltype RGB{N0f8}\n\njulia\u003e gif_encode(\"fire.gif\", img)\n```\n\n### Contributions and Issues:\n\nIf you have questions about GIFImages.jl, feel free to get in touch via Slack or open an issue :hearts:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuliaIO%2FGIFImages.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJuliaIO%2FGIFImages.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuliaIO%2FGIFImages.jl/lists"}