---
name: "dcraw2hdrgen"
section: "1"
platform: "linux"
package: "pfstools"
version: "2.2.0-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dcraw2hdrgen"
---

# dcraw2hdrgen(1)

Parse information in given Digital Camera RAW files and output a hdrgen script for generation of HDR images.

## NAME

dcraw2hdrgen - Parse information in given Digital Camera RAW files and output a hdrgen script for generation of HDR images.

## SYNOPSIS

**dcraw2hdrgen** \<file1.cr2\> \[\<file2.cr2\>...\]

## DESCRIPTION

This program can be used to automatically create an hdrgen script for use with software creating HDR images. The exposure information is extracted from RAW files using the \`dcraw\` tool.

If this script doesn't recognise the exposure settings from the images taken by your camera, please verify if dcraw supports your camera: \`dcraw -i -v your\_image.cr2\`. You should see a detailed information on shot settings including exposure time. Maybe compiling the newest version will help.

## EXAMPLES

- dcraw2hdrgen IMG\_0001.CR2 IMG\_0002.CR2 IMG\_0003.CR2 \> sample.hdrgen

  Creates a sample.hdrgen script for given images.

## SEE ALSO

[**dcraw**(1)](/dcraw/1.md) [**pfsindcraw**(1)](/pfsindcraw/1.md) [**pfsinhdrgen**(1)](/pfsinhdrgen/1.md) [**pfshdrcalibrate**(1)](/pfshdrcalibrate/1.md)

## BUGS

Please report bugs and comments on implementation to  Grzegorz Krawczyk \<gkrawczyk@users.sourceforge.net\>.
