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* 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
|
# how to install
|
||||||
@ -49,9 +49,9 @@
|
|||||||
|
|
||||||
### colours rendering modes
|
### colours rendering modes
|
||||||
|
|
||||||
| option | description |
|
| option | description | default |
|
||||||
|----------------------------------------|---------------------------------------------------------------|
|
|----------------------------------------|-----------------------------|------------------|
|
||||||
| --render | colour rendering mode (default: `irc`) |
|
| --render | colour rendering mode | `ansi` |
|
||||||
|
|
||||||
`irc` mode has 99 colours, (6.62-bit)
|
`irc` mode has 99 colours, (6.62-bit)
|
||||||
|
|
||||||
@ -59,12 +59,12 @@
|
|||||||
|
|
||||||
`ansi24` has 16777216 colours (24-bit)
|
`ansi24` has 16777216 colours (24-bit)
|
||||||
|
|
||||||
### pixel rendering modes (select one)
|
### pixel rendering modes
|
||||||
|
|
||||||
| option | description |
|
| option | description | default |
|
||||||
|---------------|-------------------------------|
|
|---------------|-------------------------------|--------------|
|
||||||
| `--braille` | use braille pixels |
|
| `--braille` | use braille pixels | `false` |
|
||||||
| `--blocks[=types]` | use block pixels of the provided types. defaults to `full,half,quarter,eighth,triangle,corner,geometric,box,legacy` |
|
| `--blocks[=types]` | use block pixels of the provided types | `full,half,quarter,eighth,triangle,corner,geometric,box,legacy` |
|
||||||
|
|
||||||
#### braille mode
|
#### braille mode
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ pub struct Args {
|
|||||||
pub flipv: bool,
|
pub flipv: bool,
|
||||||
|
|
||||||
/// colour mode to use
|
/// 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,
|
pub render: Render,
|
||||||
|
|
||||||
/// use braille pixels
|
/// use braille pixels
|
||||||
@ -85,7 +85,6 @@ pub struct Args {
|
|||||||
long,
|
long,
|
||||||
default_value_t = false,
|
default_value_t = false,
|
||||||
conflicts_with = "block",
|
conflicts_with = "block",
|
||||||
required_unless_present = "blocks"
|
|
||||||
)]
|
)]
|
||||||
pub braille: bool,
|
pub braille: bool,
|
||||||
|
|
||||||
@ -95,7 +94,7 @@ pub struct Args {
|
|||||||
value_enum,
|
value_enum,
|
||||||
value_delimiter = ',',
|
value_delimiter = ',',
|
||||||
num_args = 0..,
|
num_args = 0..,
|
||||||
default_missing_values = &[
|
default_values = &[
|
||||||
"full",
|
"full",
|
||||||
"half",
|
"half",
|
||||||
"quarter",
|
"quarter",
|
||||||
@ -107,7 +106,6 @@ pub struct Args {
|
|||||||
"legacy",
|
"legacy",
|
||||||
],
|
],
|
||||||
conflicts_with = "braille",
|
conflicts_with = "braille",
|
||||||
required_unless_present = "braille"
|
|
||||||
)]
|
)]
|
||||||
pub blocks: Vec<BlockKind>,
|
pub blocks: Vec<BlockKind>,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user