{"id":17675328,"url":"https://github.com/numandev1/react-native-gifsicle","last_synced_at":"2025-08-20T12:43:27.811Z","repository":{"id":203627058,"uuid":"703942539","full_name":"numandev1/react-native-gifsicle","owner":"numandev1","description":"Compress, Optimize and Manipulate GIF in React Native 🚀✨","archived":false,"fork":false,"pushed_at":"2023-10-27T21:46:41.000Z","size":2947,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T06:20:24.859Z","etag":null,"topics":["android","compress","compress-images","compressed","compression","compressor","gif","gif-animation","gifsicle","ios","manipulation","optimization","optimization-algorithms","react","react-native","reactjs"],"latest_commit_sha":null,"homepage":"https://www.freeconvert.com/gif-compressor","language":"C","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/numandev1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":"numandev1","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"http://buymeacoffee.com/numan.dev"}},"created_at":"2023-10-12T08:16:42.000Z","updated_at":"2025-06-08T10:28:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"143161c3-e4ce-43b5-90e5-bdab7d9ed491","html_url":"https://github.com/numandev1/react-native-gifsicle","commit_stats":null,"previous_names":["numandev1/react-native-gifsicle"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/numandev1/react-native-gifsicle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-gifsicle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-gifsicle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-gifsicle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-gifsicle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numandev1","download_url":"https://codeload.github.com/numandev1/react-native-gifsicle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2Freact-native-gifsicle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270918294,"owners_count":24667665,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","compress","compress-images","compressed","compression","compressor","gif","gif-animation","gifsicle","ios","manipulation","optimization","optimization-algorithms","react","react-native","reactjs"],"created_at":"2024-10-24T07:10:46.995Z","updated_at":"2025-08-20T12:43:27.648Z","avatar_url":"https://github.com/numandev1.png","language":"C","funding_links":["https://github.com/sponsors/numandev1","http://buymeacoffee.com/numan.dev"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./media/logo.gif\"\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"500\" src=\"./media/gifsicle.png\"\u003e\n\n[![GitHub Repo stars](https://img.shields.io/badge/React_Native-20232A?style=for-the-badge\u0026logo=react\u0026logoColor=61DAFB)](#installation)\n[![GitHub Repo stars](https://img.shields.io/badge/Expo-1B1F23?style=for-the-badge\u0026logo=expo\u0026logoColor=white)](#managed-expo)\n[![GitHub Repo stars](https://img.shields.io/static/v1?style=for-the-badge\u0026message=Discord\u0026color=5865F2\u0026logo=Discord\u0026logoColor=FFFFFF\u0026label=)](https://discord.gg/fgPHnZpH9d)\n[![GitHub Repo stars](https://img.shields.io/github/stars/numandev1/react-native-gifsicle?style=for-the-badge\u0026logo=github)](https://github.com/numandev1/react-native-gifsicle/stargazers)\n![npm](https://img.shields.io/npm/dt/react-native-gifsicle?style=for-the-badge)\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eREACT-NATIVE-GIFSICLE\u003c/b\u003e is a react-native package, which helps us to \u003cb\u003eCompress\u003c/b\u003e, \u003cb\u003eOptimize\u003c/b\u003e and \u003cb\u003eManipulate\u003c/b\u003e Gif, It is a using \u003ca href=\"https://github.com/kohler/gifsicle\"\u003eGifsicle\u003c/a\u003e under the hood\n\n# Table of Contents\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen Table of Contents\u003c/summary\u003e\n\n- [Installation](#installation)\n  - [For React Native](#installation)\n  - [Managed Expo](#managed-expo)\n- [Basic Usage](#basic-usage)\n- [Setup](#video)\n  - [IOS](#ios)\n  - [Android](#android)\n  \u003c/details\u003e\n\n## Installation\n\n```sh\nyarn add react-native-gifsicle\n```\n\n##### [New Architecture (Turbo Module) Supported](https://reactnative.dev/docs/new-architecture-intro)\n\nYou can give feedback on [Discord channel](https://discord.gg/fgPHnZpH9d)\n\n### Managed Expo\n\n```\nexpo install react-native-gifsicle\n```\n\nAdd the Gifsicle plugin to your Expo config (`app.json`, `app.config.json` or `app.config.js`):\n\n```json\n{\n  \"name\": \"my app\",\n  \"plugins\": [\"react-native-gifsicle\"]\n}\n```\n\nFinally, compile the mods:\n\n```\nexpo prebuild\n```\n\n## Basic Usage\n\n## Javascript\n\n```js\nimport RNGifsicle from 'react-native-gifsicle';\n\nconst manipulatedUri = await RNGifsicle.compressGif(uri, {\n  lossy: 100,\n  colors: 250,\n  // scale_x: 2,\n  // scale_y: 2,\n  // optimize:3\n  // height: 250,\n  // width: 300,\n});\n```\n\n## Setup\n\nInstall the package:\n\n```\nyarn add react-native-gifsicle\n```\n\nLink the library:\n\n(Note: For React Native 0.60 or greater, [autolinking](https://reactnative.dev/blog/2019/07/03/version-60#native-modules-are-now-autolinked) is available)\n\nor later. For earlier versions you need to manually link the module.)\n\n```\nreact-native link react-native-gifsicle\n```\n\n### IOS\n\nif cocoapods are used in the project then pod has to be installed as well:\n\n```\n(cd ios; pod install)\n```\n\n- **Manual Link (iOS)**\n\n  1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n  2. Go to `node_modules` ➜ `react-native-gifsicle` and add `Gifsicle.xcodeproj`\n  3. Expand the `Gifsicle.xcodeproj` ➜ `Products` folder\n  4. In the project navigator, select your project. Add `Gifsicle.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n  5. And go the Build Settings tab. Make sure All is toggled on (instead of Basic)\n  6. Look for Header Search Paths and add `$(SRCROOT)/../node_modules/react-native-gifsicle/ios/**` as `non-recursive`\n\n## API\n\n### `compressGif(uri, options)`\n\nCompresses a GIF located at the specified URI using the provided options.\n\n#### Parameters\n\n- `uri` (string): The URI of the GIF to compress.\n- `options` (object): The options for compression. Available options are:\n  - `lossy` (number): Alter image colors to shrink output file size at the cost of artifacts and noise. `default=200` range `[0-200]`\n  - `optimize` (number): Optimize output GIFs. `default=3` range `[1-3]`\n  - `colors` (number): Reduce the number of colors to N. `default=255` rage [0-255]\n  - `scale_x` (number): Scale the image in the x-axis.\n  - `scale_y` (number): Scale the image in the y-axis.\n  - `height` (number): Resize the output GIF height.\n  - `width` (number): Resize the output GIF width.\n\n#### Returns\n\n- A Promise that resolves to a URI of the compressed GIF.\n\n## Consider supporting with a ⭐️ [star on GitHub](https://github.com/numandev1/react-native-gifsicle/stargazers)\n\nIf you are using the library in one of your projects, consider supporting it with a star. It takes a lot of time and effort to keep this maintained and address issues and bugs. Thank you.\n\n## Credits goes to\n\n[Gifsicle](https://github.com/kohler/gifsicle) by [kohler](https://github.com/kohler)\n\n[Author of this package](https://github.com/numandev1/react-native-gifsicle.git) by [Numan](https://github.com/numandev1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-gifsicle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumandev1%2Freact-native-gifsicle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-gifsicle/lists"}