Hello Radiance community,
I’m trying to reproduce an HDR workflow I originally set up in 2020 on Ubuntu, using raw2hdr to process Canon 6D Mark II .CR2 files. Back then the same script ran without issues, but today I get the following error:
raw2hdr -a -e -f -g -h -w -o image.hdr IMG_*.CR2
pimage.c@273>parameter: Unsupported image format '/tmp/raw2hdr.j8uWC5/IMG_1455.tif’
Has anyone else seen this “Unsupported image format” message? Could it be related to a library update or a change in how raw2hdr calls dcraw? Any suggestions for diagnosing or fixing this would be greatly appreciated.
Thanks in advance!
– Guillermo Barrios
Hi Guillermo,
I cannot test it on my machine without the image file, but this might also be related to external dependencies. AFAIK raw2hdr calls dcraw to convert the CR2 to a TIFF, and the dcraw-version may be different than what you had used in 2020. Can you check the exact format of the intermediate TIFF (/tmp/raw2hdr.j8uWC5/IMG_1455.tif), e.g. pixel depth, compression etc.? If there is any exotic features that are not supported by the libtiff raw2hdr was linked to, this could explain the error message.
Best, Lars.
1 Like
Lars,
I tried installing a dcraw version available in 2019, still the same issue.
Using exiftool, i get:
exiftool IMG_1455.tif
ExifTool Version Number : 13.30
File Name : IMG_1455.tif
Directory : .
File Size : 20 MB
File Modification Date/Time : 2025:06:17 15:04:55-06:00
File Access Date/Time : 2025:06:17 15:04:55-06:00
File Inode Change Date/Time : 2025:06:17 15:04:55-06:00
File Permissions : -rw-rw-r–
File Type : TIFF
File Type Extension : tif
MIME Type : image/tiff
Exif Byte Order : Little-endian (Intel, II)
Subfile Type : Full-resolution image
Image Width : 3132
Image Height : 2090
Bits Per Sample : 8 8 8
Compression : Uncompressed
Photometric Interpretation : RGB
Image Description :
Make : Canon
Camera Model Name : EOS 6D Mark II
Strip Offsets : 940
Orientation : Horizontal (normal)
Samples Per Pixel : 3
Rows Per Strip : 2090
Strip Byte Counts : 19637640
X Resolution : 300
Y Resolution : 300
Planar Configuration : Chunky
Resolution Unit : inches
Software : dcraw v9.28
Modify Date : 2020:11:05 01:34:01
Artist :
Exposure Time : 1/4098
F Number : 8.0
ISO : 100
Focal Length : 8.0 mm
User Comment :
Profile CMM Type :
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 0000:00:00 00:00:00
Profile File Signature : acsp
Primary Platform : Unknown ()
CMM Flags : Not Embedded, Independent
Device Manufacturer : none
Device Model :
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Perceptual
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator :
Profile ID : 0
Profile Copyright : auto-generated by dcraw
Profile Description : sRGB
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Tone Reproduction Curve : (Binary data 14 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 14 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 14 bytes, use -b option to extract)
Red Matrix Column : 0.43608 0.2225 0.01393
Green Matrix Column : 0.38509 0.71689 0.09709
Blue Matrix Column : 0.14305 0.06061 0.71402
Aperture : 8.0
Image Size : 3132x2090
Megapixels : 6.5
Shutter Speed : 1/4098
Focal Length : 8.0 mm
Light Value : 18.0
I can not see anything strange, and you?
thanks in advance for the help!
Hi Guillermo,
Unfortunately, Dave Coffin’s amazing dcraw.c is no longer maintained, so he hasn’t updated it with support for the latest cameras. Your best option is to download Adobe’s free RAW converter, which produces a standardized DNG (digital negative) format from any camera RAW input. This is kept up-to-date, and works on most computers. Since dcraw supports DNG, it should work for you with raw2hdr.
Hope this helps!
-Greg
P.S. It is unfortunate that camera maker’s have not simply adopted DNG as a standard, which is what it was designed for. They continue to produce new and useless versions of their own RAW formats in hopes of creating a silohed software stack. It’s terribly misguided if you ask me.
1 Like