{"id":23272262,"url":"https://github.com/ticklemycode/clip2gif","last_synced_at":"2025-07-22T20:33:38.364Z","repository":{"id":43487508,"uuid":"460993655","full_name":"ticklemycode/clip2gif","owner":"ticklemycode","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-28T03:14:11.000Z","size":12343,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T05:16:47.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ticklemycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-18T20:19:33.000Z","updated_at":"2022-10-08T14:28:58.000Z","dependencies_parsed_at":"2022-07-26T00:47:11.486Z","dependency_job_id":null,"html_url":"https://github.com/ticklemycode/clip2gif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ticklemycode/clip2gif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fclip2gif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fclip2gif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fclip2gif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fclip2gif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ticklemycode","download_url":"https://codeload.github.com/ticklemycode/clip2gif/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ticklemycode%2Fclip2gif/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567638,"owners_count":23949391,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-12-19T19:13:19.399Z","updated_at":"2025-07-22T20:33:38.307Z","avatar_url":"https://github.com/ticklemycode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clip2gif\n\n\u003e Note: `ffmpeg` (v4.4.1 or greater) is required in order to use this package. You can download `ffmpeg` from https://ffmpeg.org/download.html or install with Homebrew `brew install ffmpeg`\n\n## Why?\nThis tool was created to quickly share screen recordings as an animated GIFs within team collaboration tools like Slack and WebEx. Animated GIFs can also compliment changes within a Github or Bitbucket pull request. \n\n## How?\nUnder the hood this tool will execute `ffmpeg` commands to first create a compressed version of the original clip which is used to then produce the most optimized animated GIF possible. (The compressed version of the original clip can be also be saved with the `--saveClip` flag, otherwise only the GIF will be created).\n\n\u003e Tested with `.mov` and `.mp4` files. `clip2gif` can reduce an MP4 to **90%** from its original file size and MOV files down **80%** and still **maintain excellent quality**.\n\n## Sample\nThe GIF below was created with `clip2gif` from a Camtasia screen recording. It was a 40 second clip sped up 2x to create a 20 second clip.\n\n![Sample GIF](./samples/sample2.gif)\n\n## Install\n```bash\n  npm i -g clip2gif@latest\n```\n\n## Usage\nThe following will create a smaller file size version of the original file and create a 30s animated GIF.\n\n```bash\n  clip2gif /folder/sample.mp4 -s 2.5\n```\n\n## Options\n\n| option                  | description                                                                                                   |\n|-------------------------|---------------------------------------------------------------------------------------------------------------|\n| -h, --help              | Display this usage guide.                                                                                     |\n| --src, --file string    | Path to source file you want to convert to GIF                                                                |\n| -s, --speed string      | Used to speed up video, default is 1x. Ex: for 2.5x playback use `2.5`                                        |\n| -o, --outputDir string  | Output directory. Default will be the same directory as source file.                                          |\n| -e, --saveClip          | Save compressed version of the orginal source.                                                                |\n| -y, --clipOnly          | Create the compressed clip only, GIF will NOT be created.                                                     |\n| -p, --protect           | Protect will prevent existing files from being overwritten. By default files ARE overwritten.                 |\n\n## Notes\nKeep your clips as sort as possible, animated GIF aren't suppose to be long.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticklemycode%2Fclip2gif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fticklemycode%2Fclip2gif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fticklemycode%2Fclip2gif/lists"}