Rust: Tiny And Fast Manga/Image Viewer
- Dependency
- Linux: X11/Wayland
- Mac: -
- Windows: -
- Optional Dependency
- libheif
# github
see: https://github.com/rsuu/rmg/releases
# cargo
cargo install rmg
# git
git clone --depth 1 https://github.com/rsuu/rmg
cd rmg
cargo build --release
rmg --help
rmg tests/bit/png
rmg file.zip
# rmg file.gif
rmg --page-size 600x600 file.zip
rmg --page-size 600x600 --config ./assets/config.rs file.zip
Key | Action |
---|---|
k/Up |
move up |
j/Down |
move down |
h/Left |
move left |
r/Right |
move right |
g |
toggle gesture mode |
q |
quit |
Key | Action | Layout |
---|---|---|
scroll up |
move up | Vertical |
scroll down |
move down | Vertical |
scroll up |
zoom out | Single |
scroll down |
zoom in | Single |
Gesture | Action |
---|---|
rect |
|
ring |
First copy config.rs into <config_path>
.
- Linux:
$HOME/.config/rmg/config.rs
- Mac:
$HOME/Library/Application Support/rmg/config.rs
- Windows:
C:\Users\<USER>\AppData\<USER>\rmg\config.rs
see more: https://docs.rs/dirs-next/
Format | Supported | Default | Dependency |
---|---|---|---|
.jpg |
+ | + | |
.png |
+ | + | |
.webp |
+ | + | |
.heic/avif |
+ | libheif | |
.gif |
(dev) | + | |
.aseprite |
(dev) | ||
.svg |
(dev) |
Format | Supported | Default | Dependency |
---|---|---|---|
directory |
+ | + | |
.tar |
+ | ||
.zip/cbz |
+ | + | |
.7z |
|||
.rar |
|||
.zst |
# HEIF/HEIC
cargo run --release -F de_heic
# SVG and Aseprite
cargo run --release -F de_svg,de_aseprite
# see [CpuExtensions](https://docs.rs/fast_image_resize/latest/fast_image_resize/index.html#resize-rgb8-image-u8x3-4928x3279--852x567)
cargo run --release -F arch_avx2
# AVX2
cargo run --release -F arch_sse4_1
# SSE4_1
cargo run --release -F full