Get support for jhchen/ansize
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
jhchen/ansize
Ansize
Converts an image to binary ANSI art like so:
Check out the examples folder for some image samples and their corresponding output. Ex.
cat examples/pikachu.ansi
I optimized for images with dark backgrounds and used 0's and 1's for the character set but it's pretty easy to customize the code to convert to your liking! The basic strategy of conversion is very simple:
- Shrink image to desired size
- For each pixel, find the corresponding color in ANSI's limited color palette
- Set the foreground to that color
- Print a random 0 or 1
Installation
go get github.com/jhchen/ansize
Usage
ansize <image> <output> [width]
Development
- Install go
- Set your $GOPATH
- Install github.com/nfnt/resize
- Clone ansize
- Build ansize
On a Mac with Homebrew the commands are
brew install go
mkdir /usr/local/lib/go
export GOPATH=/usr/local/lib/go
go get github.com/nfnt/resize
git clone git@github.com:jhchen/ansize.git
go build ansize.go
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2