Crates.io | ptit |
lib.rs | ptit |
version | 0.1.1 |
source | src |
created_at | 2022-05-24 19:16:32.55571 |
updated_at | 2022-05-24 21:04:29.638873 |
description | Converts an image to block characters |
homepage | |
repository | https://github.com/DeflatedPickle/ptit |
max_upload_size | |
id | 593010 |
size | 229,368 |
Put this in text
A CLI for turning images or videos into block text elements to view in the terminal
Requires a Rust install
cargo install ptit
cargo run -- -cr url "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png"
[]
cargo run -- -cr file "~/Downloads/63.png"
[]
Adding the -c
/--crop
flag will crop the image to it's content, removing all surrounding transparent pixels
Used in combination with
-r
to avoid large images
Using the -r
/--resize
flag will resize the image to fit to your terminal, either squashing or biggering the image
Used in combination with
-c
to avoid large images
Using the -s
/--solid
flag will stop dithering on pixels with an alpha of less than 255
I had to use XTerm for these screenshots, hence bad colours