hdrshot-gui 2.3.3

HDR image tool: desktop app for converting HDR screenshots and images
hdrshot-gui-2.3.3 is not a library.

hdrshot

HDR image tool. Converts HDR screenshots, phone HDR photos and other HDR images to HDR PNG, AVIF, Ultra HDR JPEG and SDR PNG.

Release Downloads CI crates.io License Platforms

Download · Try it in your browser · Desktop app · Command line · How it works

Windows Game Bar, the NVIDIA app and Xbox save HDR screenshots as JPEG XR, a format few applications can open. hdrshot converts them, and other HDR images, to formats that can be viewed and shared: HDR PNG, AVIF or Ultra HDR JPEG for screens and apps that support HDR, and SDR PNG for everything else, without changing how the picture looks.

Features

  • HDR PNG. Rec.2020 PQ with the brightness of the original screenshot, shown in HDR by Windows Photos, Chrome, Edge and HDR image viewers.
  • HDR AVIF. Optionally the same HDR picture as a 10-bit AVIF, about a twentieth of the PNG's size, shown in HDR by Chrome, Edge and Firefox.
  • Ultra HDR JPEG. Or as a JPEG with a gain map: every app shows the SDR picture, and Chrome, Edge, Android and Instagram brighten it to HDR.
  • SDR PNG or JPEG. Tone-mapped the way Windows shows the screenshot on an SDR screen, with highlights that roll off smoothly and colors that keep their hue.
  • Faithful by default. Brightness, peak and white level all come from the screenshot itself. Tuning options are available but not required.
  • Drag and drop. Drop files or whole folders, pick HDR, SDR or both, press Convert.
  • Copy for Discord. One click puts the image on the clipboard in a form Discord shows with correct colors. On Windows you can also drag it straight from the list into Discord.
  • Phone HDR photos. Reads the HDR photos phones take: Ultra HDR JPEGs from Android phones (Pixel, Samsung, OnePlus and others), iPhone HEIC photos and iPhone JPEGs. They come out as bright as the phone shows them on an HDR screen.
  • Other HDR inputs. Also reads OpenEXR (.exr), Radiance (.hdr), HDR PNG, HDR AVIF (including AVIFs with a gain map) and JPEG XL (.jxl) files, for game photo modes, renders, photo exports and re-tone-mapping.
  • Watch folder. Optionally converts each new screenshot saved to a folder, such as the Game Bar or NVIDIA app captures folder, as soon as it is written. On Windows it can keep doing so from the tray, starting with Windows if you like.
  • Double-click or right-click to convert. Optionally opens .jxr files with hdrshot on Windows and Linux, is listed under Open with for the other formats it reads, and on Windows adds Convert with hdrshot to their right-click menu.
  • Parallel conversion. Uses all CPU cores, written in pure Rust with no external libraries.

Download

The desktop app and the hdrshot command-line tool are separate downloads. These links always point to the latest release.

Platform Desktop app Command line
Windows 10/11 (x64) hdrshot.exe hdrshot-cli.exe
macOS 11+ (Apple silicon and Intel) hdrshot-gui-macos.dmg hdrshot-cli-macos.tar.gz
Linux (x64) hdrshot-gui-linux-x64.tar.gz hdrshot-cli-linux-x64.tar.gz

SHA256SUMS.txt in each release lists the checksums of all downloads. The app's Update button checks its download against this list.

No installer is needed. On Windows, run the .exe directly. The command-line examples below call the tool hdrshot; with the Windows download, type hdrshot-cli instead, or rename the file. On macOS, open the disk image and drag hdrshot to Applications. On Linux and for the macOS command line, unpack the archive. The builds aren't signed with a paid certificate, so the first launch needs one extra step:

  • Windows: if SmartScreen says "Windows protected your PC", choose More info, then Run anyway.
  • macOS: if the app "can't be opened", open System Settings → Privacy & Security and choose Open Anyway next to hdrshot (on older macOS, right-click the app and choose Open). Or remove the download quarantine in Terminal: xattr -dr com.apple.quarantine /Applications/hdrshot.app, or xattr -d com.apple.quarantine hdrshot for the command-line tool.

On Linux, to list the app in your application menu and open .jxr files with it, install the files from the unpacked folder (and copy hdrshot from the command-line archive to ~/.local/bin as well, if you want it):

install -Dm755 hdrshot-gui -t ~/.local/bin
install -Dm644 hdrshot.desktop -t ~/.local/share/applications
cp -r icons/hicolor ~/.local/share/icons/

With Scoop

On Windows, Scoop installs both tools and keeps them up to date:

scoop bucket add snaketech https://github.com/snaketech-tu/scoop-bucket
scoop install hdrshot

This adds the hdrshot command (the command-line tool), the hdrshot-gui command (the desktop app) and a Start menu shortcut. scoop update hdrshot updates both; the app's Check for updates shows that command instead of replacing the files itself.

With Cargo

With Rust 1.99 or newer installed, both tools can also be built from crates.io:

cargo install hdrshot        # command-line tool
cargo install hdrshot-gui    # desktop app

In the browser

To convert a few images without installing anything, open snaketech-tu.github.io/hdrshot. It runs the same conversion as the desktop app, with the same defaults, on your computer: images are never uploaded. It works in current versions of Chrome, Edge, Firefox and Safari.

The desktop app is faster and does more:

Desktop app Browser version
Inputs and outputs All formats All formats, except AVIF input
Speed All CPU cores for each image One core per image; AVIF takes about four times as long
Saving Next to the originals or into a folder, keeping the capture date Downloads (one file or a .zip that keeps the capture date), or into a folder in Chrome and Edge
Copy for Discord Clipboard, and drag out on Windows Download, then drop the file into Discord; browsers can't copy HDR images
Watch folder, tray, right-click convert, Recycle Bin Yes No

hdrshot was called jxr2png up to version 1.2. Settings and the .jxr file association carry over, and version 1.2 updates to it from Check for updates.

Desktop app

  1. Drop .jxr files or folders anywhere on the window, click the drop area or Add files to choose files, or paste files copied in Explorer or Finder with Ctrl+V. On Windows and Linux, files dropped onto the program's icon are added too. Files opened while the app is running, for example several screenshots picked with Open with, go to the window that is already open.
  2. Check the row of buttons under the list, which sums up the settings: what to create (for example HDR PNG + SDR PNG), where to save, the largest size, and what happens after converting. Click one to change it: HDR + SDR, HDR only or SDR only, the HDR format (PNG, AVIF or Ultra HDR JPEG), the SDR format (PNG or JPEG), and whether to save next to each image, into one of the last three folders used, or into a new one.
  3. Press Convert. It converts the files not converted yet and shows the progress and the time left. When it is done, a summary above the settings shows how many images were saved, their size and anything that went wrong, with Open folder and Retry failed.

All settings are also on the Settings page, opened with the button at the top right; Esc or the back button returns to the list. The window opens where it was last closed, at the same size.

The app can also copy images for Discord, watch a folder for new screenshots, run in the tray, convert from the right-click menu, replace originals with the converted files and more. All options are described in the desktop app guide.

Command line

hdrshot [OPTIONS] <INPUTS>...
hdrshot [OPTIONS] --watch <FOLDER> [INPUTS]...

Inputs are image files or folders. Files that already exist are skipped, and the exit code is non-zero if any file failed.

hdrshot shot.jxr                         # writes shot_hdr.png and shot_sdr.png
hdrshot --hdr -o out/ a.jxr b.jxr        # HDR only, into out/
hdrshot *.jxr                            # wildcards work in cmd and PowerShell too
hdrshot -r Captures/                     # a folder, including its subfolders
hdrshot --sdr --sdr-white 203 shot.jxr   # darker SDR result
hdrshot --format avif shot.jxr           # HDR as AVIF instead of PNG
hdrshot --sdr --sdr-format jpeg --jpeg-quality 85 shot.jxr
hdrshot --max-height 1440 --subfolders -o out/ Captures/
hdrshot --name "{name}-{type}" shot.jxr  # writes shot-hdr.png and shot-sdr.png
hdrshot --hdr --copy-small shot.jxr      # convert, then copy for Discord
hdrshot --watch Captures/ --copy         # convert each new screenshot, copy it
hdrshot --json Captures/ > results.jsonl # one JSON line per input, for scripts

All options, the JSON output, exit codes and shell completions are in the command-line reference.

Sharing on Discord

Discord does not show every HDR file the way an HDR viewer does, so the Copy for Discord button, dragging an image out of the desktop app's list and --copy do not always give the saved file unchanged. The saved files are never modified.

Saved HDR format What Discord does with it What gets copied
PNG Its image service converts PNGs that carry a cICP chunk to SDR with swapped colors, so warm scenes turn yellow. Without the chunk, it shows the image in HDR. The same PNG without the cICP and mDCV chunks. The ICC profile, which also marks the image as BT.2020 PQ, stays and is kept under 32 KB, since Discord drops larger profiles.
AVIF Ignores the PQ transfer, so the image looks far too bright. An HDR PNG made for Discord and kept in a temporary folder. The desktop app makes it while converting the last image of a batch, and for the others when Copy for Discord is clicked or the image is first dragged out.
Ultra HDR JPEG Drops the gain map and shows only the SDR base image. The same HDR PNG made for Discord.

The saved PNG keeps cICP because Windows Photos and most HDR image viewers need it to show the image in HDR; an ICC profile alone makes them show SDR. mDCV is left out of the copy because the PNG specification only allows it together with cICP. To save PNGs that are already in the Discord form, turn on Discord-compatible PNG in the app or use --for-discord.

HDR in Discord works in the desktop app and in Chromium-based browsers on an HDR display. The mobile apps do not reliably show HDR images, at least in the inline preview. Discord's upload limit for free accounts is 10 MB, so the app offers a smaller copy when the PNG is larger.

How it works

Windows HDR screenshots store linear scRGB: BT.709 primaries, where 1.0 is 80 nits, values above 1.0 are highlights and negative values are colors outside BT.709. Decoding uses jxr, a pure Rust JPEG XR decoder, so no C toolchain is needed.

HDR PNG SDR PNG
Color Rec.2020, PQ (absolute nits) sRGB
Bit depth 16-bit, rounded to 10 bits 8-bit
Metadata cICP, mDCV, cLLI, ICC v4.4 with cicp tag and SDR fallback sRGB
Brightness Exactly the screenshot's 80-nit SDR white, highlights rolled off

The details, including AVIF, Ultra HDR JPEG and every input format, are in How hdrshot works.

Building from source

See CONTRIBUTING.md.

Feedback

Found a problem, or missing a feature? Please open an issue. Questions and ideas are welcome in Discussions. To report a security problem privately, see SECURITY.md.

Credits

hdrshot is built on the work of many open source projects. Thanks to their authors and contributors, in particular:

Image formats

Desktop app

Command line and browser version

The full list of dependencies is in Cargo.lock.

License

Apache-2.0

Made by snake.tech. If hdrshot is useful to you, you can support it on Ko-fi.