rosier 0.5.2

A fast picture and video viewer for large folders
[![CI](https://github.com/nao1215/rosier/actions/workflows/rust.yml/badge.svg)](https://github.com/nao1215/rosier/actions/workflows/rust.yml)
![Coverage](https://raw.githubusercontent.com/nao1215/octocovs-central-repo/main/badges/nao1215/rosier/coverage.svg)
[![Gitleaks](https://github.com/nao1215/rosier/actions/workflows/gitleaks.yml/badge.svg)](https://github.com/nao1215/rosier/actions/workflows/gitleaks.yml)
[![Trivy](https://github.com/nao1215/rosier/actions/workflows/trivy.yml/badge.svg)](https://github.com/nao1215/rosier/actions/workflows/trivy.yml)
[![cargo-deny](https://github.com/nao1215/rosier/actions/workflows/cargo-deny.yml/badge.svg)](https://github.com/nao1215/rosier/actions/workflows/cargo-deny.yml)
[![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/nao1215/rosier/total)](https://github.com/nao1215/rosier/releases)
[![License](https://img.shields.io/github/license/nao1215/rosier)](./LICENSE)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/nao1215/rosier/badge)](https://scorecard.dev/viewer/?uri=github.com/nao1215/rosier)

# rosier

A fast viewer for huge folders of pictures and videos. Watch up to four at once, or read a comic.

rosier reads your folders where they are and never moves, renames or uploads a file. It runs on Linux, Windows and macOS, in 11 languages.

![A tour of rosier: browsing the library, stepping through owl photos and zooming in, a video, reading a comic two pages at a time, four slideshows at once, and picture in picture over the library](docs/images/tour.webp)

Recorded on Linux, at the speed it happened.

## Faster than the viewers you know

![Seconds from launching with a photo to the photo on screen, for a 12 MP JPEG, a 50 MP JPEG and a 12 MP HEIC: rosier 0.11, 0.13, 0.17; nsxiv 0.10, 0.28, 0.61; imv 0.12, 0.24, 0.64; pqiv 0.26, 0.58, 0.75; feh 0.13, 0.37, 0.64; qimgv 0.21, 0.34, cannot open HEIC; qView 0.26, 0.55, 0.75; geeqie 0.39, 0.51, 0.90; Gwenview 0.47, 0.62, 1.34; Loupe 0.50, 0.67, 1.00](docs/images/bench-open.png)

![Seconds from launching with a folder of 20,000 photos to its first screen of thumbnails, first time and again: rosier 0.18 and 0.09; nsxiv 0.18 and 0.16; pqiv 11.94 and 11.84; feh shows nothing within 180 s; qimgv 0.83 and 0.53; Gwenview 1.66 and 1.68; imv, qView, geeqie and Loupe have no thumbnail grid](docs/images/bench-folder.png)

<details>
<summary>How this was measured</summary>

| | |
|:--|:--|
| Machine | Ubuntu 26.04, AMD Ryzen AI Max+ 395 |
| Screen | Each viewer maximized on 1920 × 1080 |
| Time | From launch until the screen stops changing, median of 10 runs |
| Versions | nsxiv 33, imv 5.0.1, pqiv 2.13.3, feh 3.11.2, qimgv 1.0.2, qView 7.1, geeqie 2.6.1, Gwenview 25.12.3, Loupe 50.0 |
| Folders | nsxiv with `-t -r`, pqiv with `--auto-montage-mode`, feh with `-t` (it reads every file before it shows any) |
| Thumbnails on the first screen | rosier about 30, nsxiv 91, pqiv 91, qimgv 50, Gwenview 77 |
| Caches | Each run starts with the viewer's caches empty (first time) or filled by an earlier run (again); the GPU driver's shader cache is kept, as on a desktop |
| Pictures | Made by [scripts/bench/inputs.py]scripts/bench/inputs.py, the same on every run |
| Harness | [scripts/bench]scripts/bench |

More from the same machine:

| | |
|:--|:--|
| Indexing 200,000 files (files in the OS cache) | 0.23 s |
| Opening that library again | 0.04 s |
| Scrolling 21,000 pictures | 60 fps |
| Four videos at once (4K and 1080p) | 1.3 to 1.8 cores |

</details>

## Features

| 23,112 photos, in real time | Your whole library, transparency shown |
|:--|:--|
| ![rosier scrolling through 23,112 photos, jumping to the end, resizing the tiles and zooming into a photo]docs/images/library-23k.webp | ![The library sorted by date modified: flowers with transparent backgrounds over a checkerboard, portraits, owls, turtles and the sea]docs/images/library.jpg |
| Comics: CBZ, ZIP and picture EPUB, two pages side by side | Two photos compared, zoomed and panned together |
| ![A shelf of Pepper&Carrot episodes with their page counts; one opens at its cover, then turns two pages at a time]docs/images/comics.webp | ![Two owls side by side in two panes]docs/images/compare.jpg |
| A 4K picture | Zoomed in, pixels stay crisp |
| ![A 4K illustration of a woman on a street of old Japanese houses under cherry blossoms]docs/images/picture-4k.jpg | ![The same picture zoomed into her face]docs/images/picture-4k-zoomed.jpg |
| What the camera recorded | One folder at a time |
| ![A photo of a desert dune with the info panel: Canon EOS 5DS R, 24-105 mm, f/11, 1/50 s, ISO 100]docs/images/info.jpg | ![A folder of owl photos]docs/images/owls.jpg |
| Four slideshows at once | Picture in picture |
| ![Four panes, each running its own slideshow]docs/images/split-4-slideshow.webp | ![The panes keep playing in a small window while the library is browsed underneath]docs/images/pip.webp |
| Video | The frame under the pointer on the seek bar |
| ![Big Buck Bunny playing; the control bar appears, the pointer moves along the seek bar showing the frame at each point, and a click jumps there]docs/images/video.webp | ![Moving the pointer along the seek bar shows the frame and time at each point]docs/images/seek-preview.webp |
| Video tiles play under the pointer | Comics scrolled vertically |
| ![Resting the pointer on video tiles plays them, muted; tiles show each length, and Continue watching lists videos stopped part way]docs/images/library-video.webp | ![A Pepper&Carrot episode read as one long column of pages, scrolled with the wheel]docs/images/comics-vertical.webp |
| Motion photos play their few seconds |  |
| ![A motion photo opens: its few seconds of motion play once over the still, then it rests on the still]docs/images/motion-photo.webp |  |

| | |
|:--|:--|
| Panes | 1, 2 or 4, each with its own folder, slideshow, shuffle, sound and mute; fit, fill, stretch or actual size; zoom and pan in sync on request |
| Pictures | JPEG, PNG, GIF and WebP (animated), BMP, TIFF, AVIF, HEIC, JPEG XL, SVG, PSD, camera RAW (CR2, NEF, ARW, DNG: the camera's preview); embedded color profiles (Display P3, Adobe RGB) shown as meant |
| Books | Comic archives (ZIP, CBZ) and picture EPUBs: one page, two side by side, or one long column to scroll; right to left or left to right; a folder of scans too |
| Video | Anything libmpv plays; 0.25× to 4×, frame steps, audio tracks, subtitles, chapters |
| Picks up where you left off | Panes, library view, and each video's position (Continue watching) |
| Library | Sort by name, date taken, date modified or size; favorites, stars (1 to 5), hidden folders, new files appear while it runs, drag and drop |
| Languages | 11, following the system: English, 日本語, 简体中文, 繁體中文, 한국어, Español, Português, Français, Deutsch, Italiano, Русский |

## Install

Download the file for your system from [Releases](https://github.com/nao1215/rosier/releases). Every system has an `x86_64` build (Intel and AMD) and an `aarch64` build (ARM: Apple silicon, Snapdragon, Raspberry Pi 5 and the like).

### Linux

| Package | For | libmpv (video) |
|:--|:--|:--|
| `.deb` | Debian, Ubuntu, Linux Mint | installed with it |
| `.rpm` | Fedora, openSUSE | installed with it when your repositories have it |
| `.apk` | Alpine Linux 3.24 and later | installed with it |
| `.AppImage` | any distribution | included |
| `.tar.gz` | any distribution | install it yourself (below) |

Ubuntu and Debian, with the file you downloaded:

```sh
sudo apt install ./rosier-*-x86_64-unknown-linux-gnu.deb
```

Fedora:

```sh
sudo dnf install ./rosier-*-x86_64-unknown-linux-gnu.rpm
```

Alpine: trust the key the packages are signed with (once), then install.

```sh
sudo wget -O /etc/apk/keys/rosier-apk.rsa.pub https://github.com/nao1215/rosier/releases/latest/download/rosier-apk.rsa.pub
```

```sh
sudo apk add ./rosier-*-x86_64-alpine-linux-musl.apk
```

AppImage: make it executable and run it.

```sh
chmod +x rosier-*-x86_64-unknown-linux-gnu.AppImage
```

For the `.tar.gz`, install libmpv from your distribution (`libmpv2` on Debian and Ubuntu, `mpv-libs` on Fedora, `mpv` on Arch), extract it and run `rosier`. The first screen asks for your folders; outside a package it also adds rosier to the app menu.

### Windows

With Scoop:

```sh
scoop bucket add nao1215 https://github.com/nao1215/scoop-bucket
```

```sh
scoop install rosier
```

Or download it:

Extract the zip and run `rosier.exe`. libmpv is included. The program is unsigned, so SmartScreen warns on the first run: choose "More info", then "Run anyway".

### macOS

With Homebrew:

```sh
brew install --cask nao1215/tap/rosier
```

Or download it:

Open the `.dmg` and drag Rosier to Applications, or unzip the `.zip` and move `Rosier.app` there. libmpv is included. The app is not notarized by Apple, so macOS stops it the first time:

| Step | |
|:--|:--|
| 1 | Open Rosier. macOS says it cannot check it; choose Done. |
| 2 | Open System Settings > Privacy & Security, scroll to Security, and choose Open Anyway next to the message about Rosier. |
| 3 | Confirm with your password. Rosier opens, and from then on it opens normally. |

On macOS 14 and earlier, right-clicking Rosier.app and choosing Open does the same.

<details>
<summary>From crates.io</summary>

You need Rust, libmpv (see Linux above) and libjpeg-turbo. On Debian and Ubuntu, the build also needs these packages:

```sh
sudo apt install libturbojpeg0-dev libxkbcommon-x11-dev libwayland-dev libvulkan-dev libfontconfig-dev libx11-xcb-dev
```

```sh
cargo install rosier
```

</details>

<details>
<summary>Verifying a release</summary>

From v0.3.0 on, `checksums.txt` is signed with cosign, and each release carries SLSA provenance (`rosier-<tag>.intoto.jsonl`), GitHub build attestations and a CycloneDX SBOM (`rosier-<tag>-sbom.cdx.json`). With the files of one release in the current directory, `<tag>` being its tag (such as `v0.5.2`):

```sh
sha256sum --ignore-missing --check checksums.txt
```

```sh
cosign verify-blob --bundle checksums.txt.sigstore.json --certificate-identity "https://github.com/nao1215/rosier/.github/workflows/release.yml@refs/tags/<tag>" --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
```

```sh
slsa-verifier verify-artifact <archive> --provenance-path rosier-<tag>.intoto.jsonl --source-uri github.com/nao1215/rosier --source-tag <tag>
```

```sh
gh attestation verify <archive> --repo nao1215/rosier
```

</details>

## Keys

Press `?` in rosier for the full list.

| Key | Library | Viewer |
|:--|:--|:--|
| Arrows | Move | Previous, next |
| PgUp, PgDn | Page up, down | Previous, next chapter |
| Enter | Open | |
| Space | | Play, pause, start a slideshow |
| Wheel | Scroll | Previous, next; over the seek bar ±5 s, over the volume ±5 |
| Ctrl + wheel | Tile size | Zoom |
| Ctrl + 1 to 5, Ctrl + 0 | Stars, none | Stars, none |
| 0 | | Chosen fit or actual size |
| M | | Mute or unmute the pane |
| Z | | Keep zoom for the next picture |
| B | | Book view: one page or two |
| Y | | Zoom and pan all panes together |
| I | | Info: camera, lens, exposure, date taken |
| `[` `]` | | Back or forward 10 s |
| `,` `.` | | One frame back or forward |
| `<` `>` | | Slower, faster (Backspace: normal) |
| C, A | | Next subtitles, next audio track |
| 1, 2, 4 | Panes | Panes |
| P | Picture in picture | Picture in picture |
| F11 | Full screen | Full screen |

## License

[MIT](LICENSE). Pictures in this README: see [docs/images/CREDITS.md](docs/images/CREDITS.md).