rosier 0.2.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.
- 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 source

You need Rust and libmpv (see Linux above).

```sh
cargo install --locked --git https://github.com/nao1215/rosier
```

## Keys

Press `?` in rosier for the full list.

| Key | Library | Viewer |
|:--|:--|:--|
| Arrows, PgUp, PgDn | Move | Previous, next |
| Enter | Open | |
| Space | | Play, pause, start a slideshow |
| Ctrl + wheel / wheel | Tile size | Zoom |
| 0 | | Fit or actual size |
| 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).