mirror of
https://github.com/waveplate/img2irc.git
synced 2025-06-08 11:19:55 +00:00
use ansi+block by default
This commit is contained in:
parent
6485c7669a
commit
094b438160
20
README.md
20
README.md
@ -2,10 +2,10 @@
|
||||
|
||||
*img2irc* is a premiere command-line utility which converts images to irc/ansi art, with a lot of post-processing filters
|
||||
|
||||
`$ img2irc https://i.imgur.com/qP1uBCK.png --render ansi --blocks --width 122 --contrast 20 --scale 1:1.05`
|
||||
`$ img2irc https://i.imgur.com/qP1uBCK.png`
|
||||
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
|
||||
# how to install
|
||||
@ -49,9 +49,9 @@
|
||||
|
||||
### colours rendering modes
|
||||
|
||||
| option | description |
|
||||
|----------------------------------------|---------------------------------------------------------------|
|
||||
| --render | colour rendering mode (default: `irc`) |
|
||||
| option | description | default |
|
||||
|----------------------------------------|-----------------------------|------------------|
|
||||
| --render | colour rendering mode | `ansi` |
|
||||
|
||||
`irc` mode has 99 colours, (6.62-bit)
|
||||
|
||||
@ -59,12 +59,12 @@
|
||||
|
||||
`ansi24` has 16777216 colours (24-bit)
|
||||
|
||||
### pixel rendering modes (select one)
|
||||
### pixel rendering modes
|
||||
|
||||
| option | description |
|
||||
|---------------|-------------------------------|
|
||||
| `--braille` | use braille pixels |
|
||||
| `--blocks[=types]` | use block pixels of the provided types. defaults to `full,half,quarter,eighth,triangle,corner,geometric,box,legacy` |
|
||||
| option | description | default |
|
||||
|---------------|-------------------------------|--------------|
|
||||
| `--braille` | use braille pixels | `false` |
|
||||
| `--blocks[=types]` | use block pixels of the provided types | `full,half,quarter,eighth,triangle,corner,geometric,box,legacy` |
|
||||
|
||||
#### braille mode
|
||||
|
||||
|
@ -77,7 +77,7 @@ pub struct Args {
|
||||
pub flipv: bool,
|
||||
|
||||
/// colour mode to use
|
||||
#[arg(long, value_enum, default_value_t = Render::Irc)]
|
||||
#[arg(long, value_enum, default_value_t = Render::Ansi)]
|
||||
pub render: Render,
|
||||
|
||||
/// use braille pixels
|
||||
@ -85,7 +85,6 @@ pub struct Args {
|
||||
long,
|
||||
default_value_t = false,
|
||||
conflicts_with = "block",
|
||||
required_unless_present = "blocks"
|
||||
)]
|
||||
pub braille: bool,
|
||||
|
||||
@ -95,7 +94,7 @@ pub struct Args {
|
||||
value_enum,
|
||||
value_delimiter = ',',
|
||||
num_args = 0..,
|
||||
default_missing_values = &[
|
||||
default_values = &[
|
||||
"full",
|
||||
"half",
|
||||
"quarter",
|
||||
@ -107,7 +106,6 @@ pub struct Args {
|
||||
"legacy",
|
||||
],
|
||||
conflicts_with = "braille",
|
||||
required_unless_present = "braille"
|
||||
)]
|
||||
pub blocks: Vec<BlockKind>,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user