Skip to content

Commit

Permalink
Update Version To 2.0.0
Browse files Browse the repository at this point in the history
	修改:     Cargo.toml
	修改:     README.md
	修改:     src/app.rs
	修改:     src/lib.rs
	修改:     src/main.rs
	.gitignore
  • Loading branch information
A4-Tacks committed Apr 17, 2023
1 parent 8d60267 commit 44ba065
Show file tree
Hide file tree
Showing 5 changed files with 649 additions and 884 deletions.
25 changes: 18 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
[package]
name = "timg"
version = "1.2.0"
version = "2.0.0"
edition = "2021"

authors = ["A4-Tacks <[email protected]>"]
keywords = ["terminal", "image", "term"]
description = "Display image for terminal (VT100)"
keywords = ["terminal", "image", "term", "tui", "viewer"]
description = "Picture viewer for terminal (VT100)."
categories = ["command-line-utilities"]
license-file = "LICENSE"

license = "MIT"
repository = "https://github.com/A4-Tacks/timg"
homepage = "https://github.com/A4-Tacks/timg"

readme = "README.md"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
image = "0.24.*"
#imageproc = "0.23.*"
image = "0.24.6"
clap = "2.27.0"
term_size = "0.3.2"
term_lattice = "0.4.1"
raw_tty = "0.1.0"


[profile.dev]
opt-level = 1


[profile.release]
strip = true
68 changes: 16 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,16 @@
# Display image for terminal (VT100)
```
A4-Tacks <[email protected]>
USAGE:
timg [FLAGS] [OPTIONS] [FILE]
FLAGS:
--disable-default-colors
--disable-empty-char
-H, --help Prints help information
-s, --no-split-edge No split edge
--output-colors
-V, --version Prints version information
OPTIONS:
-b, --background-color <color> Display image background color
(default:000000)
--colors <colors> Define color output.
format: 38;2;0;0;0:30,48;2;0;0;0:40
-c, --crop-image <range> crop image
(format:-c 'x,y-w,h') (0f-100f)
--empty-char <char> Set empty char\n(default:\x20)
-t, --filter <id> Type of filter used
0: Nearest (quick)
1: Triangle
2: CatmullRom
3: Gaussian
4: Lanczos3 (default)
-f, --foreground <char> Set display foreground char
-h, --height <height> Set display image height
-d, --optimization-level <level> Set optimization level
(default:1) [0, 255]
-w, --width <width> Set display image width
ARGS:
<FILE> Target file
```

# Update Log

## v1.0.1
- Fixed bug: extra empty lines at the end

## v1.1.0
- Added function: output specified characters when the foreground and background colors are similar to reduce the rendering pressure and space occupation of half-height characters
- - Add Flag: --disable-empty-char
- - Add Option: --empty-char

## v1.2.0
- Add crop picture options

The image viewer on the terminal is based on the VT100 standard.

# Function
- Zoom Picture
- Rotate Picture
- Mirror image
- Inverted image
- Grayscale image
- Change interpolation algorithm
- Change background color
- Adjusting the output color difference threshold to improve output speed

# Info
crate: <https://crates.io/crates/timg>

Due to the current implementation of reading one character at a time being unavailable on Windows, it may result in the software being unavailable or not meeting expectations on Windows.
Loading

0 comments on commit 44ba065

Please sign in to comment.