{"id":22842990,"url":"https://github.com/deflatedpickle/ptit","last_synced_at":"2026-04-28T08:33:47.073Z","repository":{"id":62444477,"uuid":"491235137","full_name":"DeflatedPickle/ptit","owner":"DeflatedPickle","description":"A CLI for turning images or videos into block text elements to view in the terminal","archived":false,"fork":false,"pushed_at":"2022-05-24T22:21:14.000Z","size":159,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T04:47:12.468Z","etag":null,"topics":["cli","image","terminal"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/ptit","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/DeflatedPickle.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}},"created_at":"2022-05-11T18:48:49.000Z","updated_at":"2023-02-13T21:26:17.000Z","dependencies_parsed_at":"2022-11-01T22:30:42.280Z","dependency_job_id":null,"html_url":"https://github.com/DeflatedPickle/ptit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeflatedPickle%2Fptit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeflatedPickle%2Fptit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeflatedPickle%2Fptit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeflatedPickle%2Fptit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeflatedPickle","download_url":"https://codeload.github.com/DeflatedPickle/ptit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418641,"owners_count":20773938,"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":["cli","image","terminal"],"created_at":"2024-12-13T02:12:14.153Z","updated_at":"2026-04-28T08:33:47.004Z","avatar_url":"https://github.com/DeflatedPickle.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ptit\n\u003e Put this in text\n\nA CLI for turning images ~~or videos~~ into block text elements to view in the terminal\n\n## Installation\n### Cargo\n\u003e Requires a Rust install\n```shell\ncargo install ptit\n```\n\n## Usage\n### URL\n##### Input\n```shell\nptit -cr url \"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png\"\n```\n##### Output\n[![](.github/image/ditto.png)]\n\n### File\n##### Input\n```shell\nptit -cr file \"~/Downloads/63.png\"\n```\n[![](.github/image/abra.png)]\n\n## Flags\n### Crop\nAdding the `-c`/`--crop` flag will crop the image to it's content, removing all surrounding transparent pixels\n#### Example\n\u003e Used in combination with `-r` to avoid large images\n##### Without\n![](.github/image/wurmple_uncropped.png)\n##### With\n![](.github/image/wurmple_cropped.png)\n\n### Resize\nUsing the `-r`/`--resize` flag will resize the image to fit to your terminal, either squashing or biggering the image\n#### Example\n\u003e Used in combination with `-c` to avoid large images\n##### Without\n![](.github/image/ekans_big.png)\n##### With\n![](.github/image/ekans_small.png)\n\n### Solid\nUsing the `-s`/`--solid` flag will stop dithering on pixels with an alpha of less than 255\n\u003e I had to use XTerm for these screenshots, hence bad colours\n#### Example\n##### Without\n![](.github/image/gradient.png)\n##### With\n![](.github/image/gradient_solid.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeflatedpickle%2Fptit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeflatedpickle%2Fptit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeflatedpickle%2Fptit/lists"}