hdrshot-gui 2.5.0

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

hdrshot

HDR screenshots that look right everywhere. Also converts the HDR images you already have.

Release Downloads CI crates.io License Platforms

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

Press Ctrl+Shift+PrtScn in a game and hdrshot saves an HDR screenshot of its window on Windows, as HDR PNG, AVIF or Ultra HDR JPEG with an SDR copy, ready to paste into Discord. Game Bar and the NVIDIA app save HDR screenshots as JPEG XR, which few apps can open, and most screenshot tools capture only SDR. hdrshot keeps the brightness of the game and writes formats that browsers, Discord and phones show correctly.

It also converts the HDR images you already have, such as Game Bar and NVIDIA app screenshots, phone HDR photos, OpenEXR and JPEG XL, on Windows, macOS and Linux.

HDR screenshots

On Windows 10 and 11, the desktop app takes the screenshots itself, in the 16-bit float data the screen shows, so nothing is lost before converting.

  • One key. Ctrl+Shift+PrtScn saves the game's window; Settings can switch it to the whole screen. A second shortcut, Ctrl+Alt+PrtScn, freezes the screen so you can drag a box around the part you want.
  • Ready to share. Each screenshot is saved in a folder per game under Pictures\hdrshot, converted to the formats you choose for screenshots (for example HDR AVIF and SDR JPEG), and copied for Discord. A notification confirms each one.
  • Gallery. The Screenshots view lists your screenshots by date and game, with a large preview, Copy for Discord and Convert.
  • Always ready. The shortcut works while hdrshot runs, so on first start the app offers to stay in the tray and start with Windows.
Captures HDR Saves HDR as Region capture
Windows Game Bar Yes JPEG XR No
NVIDIA app Yes, with an NVIDIA graphics card JPEG XR No
Steam Depends on the Steam version and settings Depends on the Steam version and settings No
ShareX, Snipping Tool No, SDR only No Yes
hdrshot Yes HDR PNG, AVIF, Ultra HDR JPEG, plus an SDR copy Yes

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. 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.
  • No settings needed. Brightness, peak and white level come from the image itself. Drop files or 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. 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. Can open .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.
  • Pure Rust. Converts on all CPU cores, and the image code needs no C 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
HDR screenshots, 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 on the window, click the drop area or Add files, or paste files copied in Explorer or Finder with Ctrl+V. With no files copied, Ctrl+V adds the HDR screenshot you just took.
  2. The row of buttons under the list shows the current 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, for example to HDR only, AVIF or another folder.
  3. Press Convert. The app shows the progress and the time left, then a summary of what was saved and what failed, 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 app can also take HDR screenshots (see above), 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 shows some HDR files wrong, so Copy for Discord, dragging an image out of the desktop app's list and --copy can give Discord a different file than the one saved. The saved files are never changed.

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 viewers need it to show HDR. To save PNGs 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.

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

Building from source

See CONTRIBUTING.md.

Feedback

To report a problem or ask for a feature, open an issue. Questions and ideas are welcome in Discussions. To report a security problem privately, see SECURITY.md.

Credits

hdrshot uses these open source projects, among others. Thanks to their authors and contributors.

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.