5 releases
0.5.11 | Jun 2, 2023 |
---|---|
0.5.10 | Mar 20, 2023 |
0.5.7 | Feb 19, 2023 |
0.4.1 |
|
0.0.0 |
|
#494 in Images
76 downloads per month
4.5MB
2.5K
SLoC
Contains (Zip file, 10KB) tests/other/img.zip
rmg
Rust: Tiny And Fast Manga/Image Viewer
Demo
Install
- Dependency
- Linux: x11 OR wayland
- Windows: None
- Mac: None(I DO NOT KNOW)
- Optional Dependency
- tar
- zip
- libheif
# github
Check here: 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.tar
rmg file.gif
rmg --size 600x600 file.tar
rmg --size 100x600 --config ./tests/other/config.rs file.tar
KeyMap
Key | |
---|---|
k/Up | move up |
j/Down | move down |
h/Left | move left |
r/Right | move right |
q | quit |
Configuration
config file: https://raw.githubusercontent.com/rsuu/rmg/main/tests/other/config.rs
NOTE:
You have to create the file first.
- Config file path
- Linux:
$HOME/.config/rmg/config.rs
- Mac:
$HOME/Library/Application Support/rmg/config.rs
- Windows:
C:\Users\<USER>\AppData\<USER>\rmg\config.rs
- Linux:
Supported Formats
Format | Supported | Default | Dependency | Mode |
---|---|---|---|---|
.jpg | ✅ | ✅ | Scroll/Once | |
.png | ✅ | ✅ | Scroll/Once | |
.heic / .avif | 🔬 | ❌ | libheif | Scroll/Once |
.gif | 🔬 | ✅ | Once | |
.aseprite | 🔬 | ❌ | Once | |
.svg | 🔬 | ❌ | Scroll/Once |
Format | Supported | Default | Dependency |
---|---|---|---|
directory | ✅ | ✅ | |
.tar | ✅ | ✅ | tar |
.zip / .cbz | ✅ | ✅ | zip |
Features
# Add support for heic
cargo run --release -F "de_heic"
# for svg AND aseprite
cargo run --release -F "de_svg" -F "de_aseprite"
# [CpuExtensions](https://docs.rs/fast_image_resize/latest/fast_image_resize/index.html#resize-rgb8-image-u8x3-4928x3279--852x567)
cargo run --release -F "avx2"
# for avx2
cargo run --release -F "sse4_1"
# for sse4_1
cargo run --release -F "full"
Dependencies
~11–26MB
~369K SLoC