{"id":18552866,"url":"https://github.com/oderwat/timg","last_synced_at":"2025-05-15T11:14:19.455Z","repository":{"id":57708780,"uuid":"507269657","full_name":"oderwat/timg","owner":"oderwat","description":"timg is a tool that shows images in the terminal (iTerm2 only)","archived":false,"fork":false,"pushed_at":"2022-06-25T11:19:32.000Z","size":2500,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T12:54:50.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/oderwat.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-06-25T09:36:15.000Z","updated_at":"2022-06-25T10:33:31.000Z","dependencies_parsed_at":"2022-09-09T15:51:14.275Z","dependency_job_id":null,"html_url":"https://github.com/oderwat/timg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Ftimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Ftimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Ftimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Ftimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oderwat","download_url":"https://codeload.github.com/oderwat/timg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328388,"owners_count":22052633,"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":[],"created_at":"2024-11-06T21:15:23.944Z","updated_at":"2025-05-15T11:14:19.436Z","avatar_url":"https://github.com/oderwat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TImg\ntimg is a tool that shows images in the terminal (iTerm2 only)\n\n**Repeat: iTerm2 only!**\n\n**NOTICE:** Currently, there seems to be a [bug with iTerm2](https://gitlab.com/gnachman/iterm2/-/issues/10420) that does not free memory. The current nightly of iTerm2 (Build 3.5.20220624-nightly) that I am using now, seems to fix this and releases the memory when the tab/window of the terminal gets closed.\n\n It still does not free the memory when the scrollback gets cleared with something like:\n\n```\nalias \"cls\"=\"clear \u0026\u0026 printf '\\e[3J'\"\n```\n\nThe memory gets freed when \"Clear Buffer\" from the menu is used!\n\nThis tool was basically made for making the problem reproducible by the developers of iTerm2\n\nInstall with: `go install github.com/oderwat/timg@latest`\n\nThis lists all you Photos with a small thumbnail in your terminal: `timg -r -h 80 ~/Pictures/Photos\\ Library.photoslibrary/originals/` \n\n```\nNAME:\n   timg - shows a single image or all images of a directory inside the terminal (e.g. ITerm2)\n\nUSAGE:\n   timg [global options] [commands] [comand options]\n\n   The default command is show and can be omitted. See 'timg h show' for help.\n\n   Examples: 'timg ~/Pictures/', 'timg -r -h 80 ~/Pictures/Photos\\ Library.photoslibrary/originals/'\n\nVERSION:\n   v0.1.0\n\nCOMMANDS:\n   panic    just for testing a panic\n   show     shows the image or all images of a directory inside the terminal (e.g. ITerm2). The path can be a glob path with ?/* and ** (e.g. ~/images/*.jpg, ~/**/*.jpg)\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --height value, -h value           sets the height of the output (default: 0)\n   --help, -?                         show help (default: false)\n   --log-level value                  logging level (default: 3)\n   --perf                             Giving some performance statistics at the end (default: false)\n   --print-version, -V                print only the version (default: false)\n   --recursive, -r                    Giving some performance statistics at the end (default: false)\n   --show-unknown-extensions, --uext  show files that are not of a known extension and get skipped (default: false)\n   --use-extensions, -x               use extensions to predict what files can be shown (default: true)\n   --width value, -w value            sets the with of the output (default: 0)\n```\n\nExample Output:\n\n![](assets/timg-demo.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foderwat%2Ftimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foderwat%2Ftimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foderwat%2Ftimg/lists"}