{"id":13941312,"url":"https://github.com/luminousmen/Kgif","last_synced_at":"2025-07-20T04:31:09.552Z","repository":{"id":102930917,"uuid":"59896537","full_name":"luminousmen/Kgif","owner":"luminousmen","description":" :neckbeard: Tool for creating gif file from capturing active window.","archived":false,"fork":false,"pushed_at":"2023-06-13T01:17:27.000Z","size":294,"stargazers_count":94,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-25T13:05:56.797Z","etag":null,"topics":["capture-tty","gif","screenshot","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/luminousmen.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":"2016-05-28T13:43:32.000Z","updated_at":"2025-02-01T18:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8f4a937-3ac0-47f2-a42d-2a3a0dfbcc98","html_url":"https://github.com/luminousmen/Kgif","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/luminousmen/Kgif","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminousmen%2FKgif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminousmen%2FKgif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminousmen%2FKgif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminousmen%2FKgif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luminousmen","download_url":"https://codeload.github.com/luminousmen/Kgif/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminousmen%2FKgif/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067257,"owners_count":23871324,"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":["capture-tty","gif","screenshot","shell"],"created_at":"2024-08-08T02:01:16.293Z","updated_at":"2025-07-20T04:31:08.715Z","avatar_url":"https://github.com/luminousmen.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"[![FBI](https://img.shields.io/badge/%F0%9F%95%B5-FBI%20checked-green.svg)](https://www.fbi.gov/)\n[![bug free](https://img.shields.io/badge/%F0%9F%90%9B-bug%20free-green.svg)](https://en.wikipedia.org/wiki/Software_bug)\n\nKgif\n======\n\nTool for creating gif file from capturing active window.\n\n![gif](https://camo.githubusercontent.com/38df9b507042dded48415dbb5a5a3c4966ea324c/687474703a2f2f692e696d6775722e636f6d2f3965743864614e2e6a7067)\n\nOriginally it was created for capturing tty output and creating preview for github projects :wink:\n\n\nI needed to capture tty output on my Ubuntu 15.10. First I came up to using ```ttyrec``` with [ttygif](https://github.com/icholy/ttygif) or [tty2gif](https://bitbucket.org/antocuni/tty2gif) convertor, then find [showterm.io](http://showterm.io/). All this solutions didn't work for me :grimacing: Than I create this simple script that satisfies all my needs.\n\n### Dependencies\n\n* scrot\n* imagemagick\n\n\n### Installation\n\n```bash\n$ sudo apt-get install imagemagick scrot\n$ git clone https://github.com/luminousmen/Kgif\n```\n\n### Usage\n\n```bash\n$ ./kgif.sh --help\nusage: ./kgif.sh [--delay] [--filename ] [--gifdelay] [--noclean] [--check] [-h]\n  -h, --help                   Show this help, exit\n      --check                  Check if all dependencies are installed, exit\n      --delay=\u003csec\u003e            Set delay in seconds to specify how long script will wait until start capturing.\n      --gifdelay=\u003csec\u003e         Set delay in seconds to specify how fast images appears in gif.\n      --filename=\u003cfile name\u003e   Set file name for output gif.\n      --noclean                Set if you don't want to delete source *.png screenshots.\n\n```\n\nCheck if all dependencies presents in system:\n```bash\n$ ./kgif.sh --check\n```\n\nSet ```delay``` in seconds to specify how long script will wait until start capturing.\n```bash\n$ ./kgif.sh --delay=5\n```\n\nSet ```noclean``` if you don't want to delete source png screenshots (for example if you want to delete some of the screenshots).\n```bash\n$ ./kgif.sh --delay=5 --noclean\n```\n\n### Preview\n\n![preview](terminal.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminousmen%2FKgif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluminousmen%2FKgif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminousmen%2FKgif/lists"}