/rmg

Rust: Tiny And Fast Manga/Image Viewer

Primary LanguageRustApache License 2.0Apache-2.0

rmg

Rust: Tiny And Fast Manga/Image Viewer

Demo

Install

  • 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

Usage

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

Keymap

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

Config

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/

Supported Formats

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

Optional Features

# 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