rosier 0.3.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.

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.

## Features

| Scroll through tens of thousands of files | Zoom in and out |
|:--|:--|
| ![Scrolling fast through a large library; thumbnails fill in as it moves]docs/images/scroll.gif | ![Zooming into a photo with the wheel and back to fit]docs/images/zoom.gif |
| Two panes, stacked | Two panes, side by side |
| ![Two pictures, one above the other]docs/images/split-2-stacked.png | ![Two pictures next to each other]docs/images/split-2-side.png |
| Four slideshows at once | Video |
| ![Four panes, each running its own slideshow]docs/images/split-4-slideshow.gif | ![A clip playing; the glass control bar appears, the seek bar is dragged, the bar fades]docs/images/video.gif |
| Picture in picture | |
| ![The panes keep playing in a small window while the library is browsed underneath]docs/images/pip.gif | |

- Each pane gets its own folder, slideshow, shuffle and video. Only the selected pane plays sound.
- Pictures saved into your folders while rosier runs show up right away, so it can sit beside an image generator.
- Favorites, and folders you can hide from the library.
- Pictures: JPEG, PNG, GIF and WebP (animations play), BMP, TIFF, and through libmpv AVIF, HEIC and JPEG XL. Video: anything libmpv plays, at 0.25× to 4× or frame by frame.
- rosier opens where you left off: the panes, the file each one showed, and the library view.
- Rest the pointer on a video tile and it plays there, muted.
- Videos start where you stopped them, and the ones you stopped part way are listed under Continue watching. Tiles show each video's length and how far you got.
- Switch audio tracks and subtitles, including subtitle files next to the video.
- On the seek bar: the frame under the pointer, a notch at each chapter, and, once you have watched part of a video again, a soft ridge over the parts you watch most.
- Pictures fade into the next one; a button in the controls turns it off.
- Drop a folder or a file on the window to open it, from the first screen on; a file dropped on a pane plays there.
- Languages: English, 日本語, 简体中文, 繁體中文, 한국어, Español, Português (Brasil), Français, Deutsch, Italiano and Русский. rosier starts in the system language, and the sidebar switches it.

Measured on an AMD Ryzen AI Max+ 395 (32 threads):

| | |
|:--|:--|
| First index of 200,000 files | 2.0 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 |

## 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 unsigned, so open it the first time by right-clicking it and choosing "Open".

### From crates.io

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

### Verifying a release

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

## 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 |
| Ctrl + wheel / wheel | Tile size | Zoom |
| 0 | | Fit or actual size |
| `[` `]` | | 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).