rosier 0.4.0

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.

![rosier scrolling through 23,112 photos, jumping to the end, resizing the tiles and zooming into a photo](docs/images/hero.gif)

Recorded in real time on Linux with 23,112 photos that rosier had opened once before.

## Faster than the viewers you know

![Seconds from launching with a photo to the photo on screen: rosier 0.14 s (12 MP JPEG), 0.20 s (50 MP JPEG), 0.24 s (12 MP HEIC); qimgv 0.27, 0.40, cannot open HEIC; qView 0.49, 0.74, 0.94; Gwenview 0.47, 0.47, 1.27; Loupe 0.65, 0.71, 0.94](docs/images/bench-open.png)

![Seconds from launching with a folder of 20,000 photos to its first screen of thumbnails: rosier 0.23 s first time and 0.11 s again; qimgv 0.71 and 0.53; Gwenview 3.20 and 1.73](docs/images/bench-folder.png)

Measured on Ubuntu 26.04 with an AMD Ryzen AI Max+ 395, each viewer maximized on a 1920 × 1080 screen: from launch to the moment the screen stops changing, median of 10 runs. qView 7.1, qimgv 1.0.2, Gwenview 25.12.3, Loupe 50.0. The first screen holds about 30 thumbnails in rosier, 50 in qimgv and 77 in Gwenview. The harness is in [scripts/bench](scripts/bench). On the same machine rosier indexes 200,000 files in 2.0 s, opens that library again in 0.04 s, scrolls 21,000 pictures at 60 fps and plays four videos (4K and 1080p) on 1.3 to 1.8 cores.

## Features

| Your whole library, transparency shown | One folder at a time |
|:--|:--|
| ![The library: flowers with transparent backgrounds over a checkerboard, foxes and a kingfisher](docs/images/library.jpg) | ![A folder of owl photos](docs/images/owls.jpg) |
| Books: comic archives and picture EPUBs, two pages side by side | Two photos compared, zoomed and panned together |
| ![A photo book of the Atacama desert open at a two-page spread](docs/images/book.jpg) | ![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 | Four slideshows at once |
| ![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) | ![Four panes, each running its own slideshow](docs/images/split-4-slideshow.gif) |
| Video | Picture in picture |
| ![A clip playing; the glass control bar appears, the seek bar is dragged, the bar fades](docs/images/video.gif) | ![The panes keep playing in a small window while the library is browsed underneath](docs/images/pip.gif) |
| Video tiles play under the pointer | The frame under the pointer on the seek bar |
| ![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.gif) | ![Moving the pointer along the seek bar shows the frame and time at each point](docs/images/seek-preview.gif) |

| | |
|:--|:--|
| 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 or two side by side, 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 archive for your system from [Releases](https://github.com/nao1215/rosier/releases).

### Linux

rosier plays video with libmpv from your distribution.

```sh
sudo apt install libmpv2
```

```sh
sudo dnf install mpv-libs
```

```sh
sudo pacman -S mpv
```

Extract the archive and run `rosier`. The first screen asks for your folders and adds rosier to the app menu.

### Windows

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

Unzip and move `Rosier.app` to Applications. 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.4.0`):

```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).