{"id":13511630,"url":"https://github.com/eliukblau/pixterm","last_synced_at":"2025-06-24T13:12:43.277Z","repository":{"id":57495197,"uuid":"80685217","full_name":"eliukblau/pixterm","owner":"eliukblau","description":"Draw images in your ANSI terminal with true color","archived":false,"fork":false,"pushed_at":"2024-09-15T18:50:41.000Z","size":22174,"stargazers_count":969,"open_issues_count":0,"forks_count":52,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-12T02:02:09.868Z","etag":null,"topics":["ansi","bmp","cli","color","gif","go","golang","image","jpeg","png","terminal","tiff","tool","true","webp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eliukblau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-02-02T02:11:06.000Z","updated_at":"2025-02-11T15:49:06.000Z","dependencies_parsed_at":"2025-03-30T20:34:18.848Z","dependency_job_id":"671d13a4-0e88-411b-a617-02003dc620c7","html_url":"https://github.com/eliukblau/pixterm","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/eliukblau/pixterm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliukblau%2Fpixterm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliukblau%2Fpixterm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliukblau%2Fpixterm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliukblau%2Fpixterm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliukblau","download_url":"https://codeload.github.com/eliukblau/pixterm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliukblau%2Fpixterm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261683039,"owners_count":23193687,"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":["ansi","bmp","cli","color","gif","go","golang","image","jpeg","png","terminal","tiff","tool","true","webp"],"created_at":"2024-08-01T03:01:01.878Z","updated_at":"2025-06-24T13:12:43.269Z","avatar_url":"https://github.com/eliukblau.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library","Repositories","Programming Languages","CLI Utilities"],"sub_categories":["命令行","Command Line","Go"],"readme":"```\n   ___  _____  ____\n  / _ \\/  _/ |/_/ /____ ______ _      Made with love by Eliuk Blau\n / ___// /_\u003e  \u003c/ __/ -_) __/  ' \\ https://github.com/eliukblau/pixterm\n/_/  /___/_/|_|\\__/\\__/_/ /_/_/_/                1.3.2\n\n```\n\n# `PIXterm` - *draw images in your ANSI terminal with true color*\n\n**`PIXterm`** ***shows images directly in your terminal***, recreating the pixels through a combination of [ANSI character background color](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) and the [unicode lower half block element](https://en.wikipedia.org/wiki/Block_Elements). If image has transparency, an optional matte color can be used for background. Also, you can specify a dithering mode; in which case, the image is rendered using block elements with different shades, or using standard ASCII characters in the same way. In dithering mode, the matte color is used to fill the background of the blocks or characters.\n\nThe conversion process runs fast because it is parallelized in all CPUs.\n\nSupported image formats: JPEG, PNG, GIF, BMP, TIFF, WebP.\n\nFetching images from HTTP/HTTPS is supported too.\n\n#### Cool Screenshots\n\n![Screenshot 1](docs/images/screenshot01.png)\n\n##### No Dithering (Classic Mode)\n\n![Screenshot 2](docs/images/screenshot02.png)\n\n![Screenshot 3](docs/images/screenshot03.png)\n\n![Screenshot 4](docs/images/screenshot04.png)\n\n![Screenshot 5](docs/images/screenshot05.png)\n\n![Screenshot 6](docs/images/screenshot06.png)\n\n##### Dithering with Blocks\n\n![Screenshot 7](docs/images/screenshot07.png)\n\n![Screenshot 8](docs/images/screenshot08.png)\n\n![Screenshot 9](docs/images/screenshot09.png)\n\n##### Dithering with Characters\n\n![Screenshot 10](docs/images/screenshot10.png)\n\n![Screenshot 11](docs/images/screenshot11.png)\n\n![Screenshot 12](docs/images/screenshot12.png)\n\n##### Dithering with Background Color Disabled (`-nobg`)\n\n![Screenshot 13](docs/images/screenshot13.png)\n\n![Screenshot 14](docs/images/screenshot14.png)\n\n#### Requirements\n\nYour terminal emulator must be support *true color* feature in order to display image colors in a right way. In addition, you must use a monospaced font that includes the lower half block unicode character: `▄ (U+2584)`. I personally recommend [Envy Code R](https://damieng.com/blog/2008/05/26/envy-code-r-preview-7-coding-font-released). It's the nice font that shows in the screenshots. If you want to use the dithering mode with blocks, the font must also includes the following unicode characters: `█ (U+2588)`, `▓ (U+2593)`, `▒ (U+2592)`, `░ (U+2591)`. The dithering mode with characters works with standard ASCII chars.\n\n#### Dependencies\n\nAll dependencies are included via standard [Go module system](https://blog.golang.org/using-go-modules). You should not do anything else.\n\n###### Dependencies for `PIXterm` CLI tool\n\n- Package [colorful](https://github.com/lucasb-eyer/go-colorful): `github.com/lucasb-eyer/go-colorful`\n- Package [terminal](https://godoc.org/golang.org/x/crypto/ssh/terminal): `golang.org/x/crypto/ssh/terminal`\n\n###### Dependencies for `ANSImage` Package\n\n- Package [colorful](https://github.com/lucasb-eyer/go-colorful): `github.com/lucasb-eyer/go-colorful`\n- Package [imaging](https://github.com/disintegration/imaging): `github.com/disintegration/imaging`\n- Package [webp](https://godoc.org/golang.org/x/image/webp): `golang.org/x/image/webp`\n- Package [bmp](https://godoc.org/golang.org/x/image/bmp): `golang.org/x/image/bmp`\n- Package [tiff](https://godoc.org/golang.org/x/image/tiff): `golang.org/x/image/tiff`\n\n#### Installation\n\n*You need the [Go compiler](https://golang.org) version 1.20 or superior installed in your system.*\n\nRun this command to automatically download sources and install **`PIXterm`** binary in your `$GOPATH/bin` (or `$GOBIN`) directory:\n\n`go get -u github.com/eliukblau/pixterm/cmd/pixterm`\n\nIf you use Arch Linux, `eigengrau` has kindly created an AUR package for **`PIXterm`** (thanks man!). Run this command to install it:\n\n`yaourt -S pixterm-git`\n\n#### About\n\n**`PIXterm`** is a terminal toy application that I made to exercise my skills on Go programming language. If you have not tried this language yet, please give it a try! It's easy, fast and very well organized. You'll not regret 😜\n\n*This application is originaly inspired by the clever [termpix](https://github.com/hopey-dishwasher/termpix), implemented in [Rust](https://www.rust-lang.org).*\n\n*The dithering mode is my own port of the [Processing Textmode Engine](https://github.com/no-carrier/ProcessingTextmodeEngine)'s render.*\n\n#### License\n\n[Mozilla Public License Version 2.0](https://mozilla.org/MPL/2.0)\n\n#### Contributors\n\n- [@disq](https://github.com/disq)\n  - Original code for image transparency support.\n\n- [@timob](https://github.com/timob)\n  - Fix for `ANSIpixel` type: use 8bit color component for output.\n\n- [@HongjiangHuang](https://github.com/HongjiangHuang)\n  - Original code for image download support.\n\n- [@brutestack](https://github.com/brutestack)\n  - Color support for Windows (Command Prompt \u0026 PowerShell).\n  - Original code for disable background color in dithering mode.\n  - Original code for output Go code to `fmt.Print()` the image.\n\n- [@diamondburned](https://github.com/diamondburned)\n  - `NewFromImage()` \u0026 `NewScaledFromImage()` for `ANSImage` API.\n\n- [@MichaelMure](https://github.com/MichaelMure)\n  - More conventional `go.mod` file at repository.\n\n- [@Calinou](https://github.com/Calinou)\n  - Use HTTPS URLs everywhere.\n  - Other awesome contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliukblau%2Fpixterm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliukblau%2Fpixterm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliukblau%2Fpixterm/lists"}