vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
Follow-up to the "pixel art in my terminal" theme. pixel2ansi will print a pixel art image using ANSI codes in your terminal. It can detect the smallest repeating pixel unit, handle color variations with adjustable tolerance, and render the image as ANSI art in the terminal. Features include transparent color detection and optional cropping. pixel2ansi is able to read PNG, BMP, and JPEG images. However, if you use a lossy format like JPEG, the "pixel unit" is often blurred and you may need to adjust the tolerance value (start with --tolerance=150 or so). If you want to print an image (example: nouns NFTs) that is in SVG format, convert it to PNG first, and make sure you don't crop or resize it. https://github.com/vrypan/pixel2ansi
2 replies
2 recasts
16 reactions

franco pfp
franco
@francos.eth
Cool, does your terminal need Kitty graphics support to render this?
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
kitty, stern, ghostty, and probably any modern terminal will support it. The macOS `Terminal.app` does not seem to like these escape characters, will probably just print blocks, or maybe there is som configuration you have to make that I'm not aware of.
1 reply
0 recast
1 reaction

franco pfp
franco
@francos.eth
might not work with alacritty then but unclear
1 reply
0 recast
0 reaction