[thanks to dlemstra - pushed IM6&IM7 fix to git repo -edit] imdisplay doesn't work with HDR (Radiance) image format

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Dabrosny
Posts: 111
Joined: 2013-10-02T10:49:39-07:00
Authentication code: 6789
Location: New York, US

[thanks to dlemstra - pushed IM6&IM7 fix to git repo -edit] imdisplay doesn't work with HDR (Radiance) image format

Post by Dabrosny »

When this image is opened in imdisplay

Code: Select all

 www.pauldebevec.com/Research/HDR/memorial.hdr
the supra-white (> 1.0) pixels are not clamped to white but are instead mangled to seemingly-random colors.
(Maybe an integer overflow or something like that?)

It displays fine if you first convert it to EXR format.

IM 7.0.6-2 Q16 HDRI x64 (Windows 7)
Last edited by Dabrosny on 2017-08-10T13:29:03-07:00, edited 6 times in total.
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by fmw42 »

It displays fine for me in IM 6.9.8.10 Q16 HDRI and in IM 7.0.6.5 Q16 HDRI

For IM 6

Code: Select all

display memorial.hdr
For IM 7

Code: Select all

magick display memorial.hdr
Using Mac OSX Sierra
Dabrosny
Posts: 111
Joined: 2013-10-02T10:49:39-07:00
Authentication code: 6789
Location: New York, US

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by Dabrosny »

Can anyone on Windows reproduce the error? (especially with your Q16 HDRI-enabled IM)

In addition to IM 7.0.6-2 Q16 HDRI x64, I can reproduce the error on 32-bit IM 7.0.2-9 Q16 HDRI x86 2016-08-14
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by fmw42 »

Perhaps you should upgrade your IM to the latest version. 7.0.2-9 is 36 versions old.
Dabrosny
Posts: 111
Joined: 2013-10-02T10:49:39-07:00
Authentication code: 6789
Location: New York, US

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by Dabrosny »

fmw42 wrote: 2017-08-07T15:13:43-07:00 Perhaps you should upgrade your IM to the latest version. 7.0.2-9 is 36 versions old.
As in my original post as well as in the one you are responding to (& my sig btw), i am using 7.0.6 x64 Windows. I said that I *also* reproduced the problem in 7.0.2 x86 32bit for Windows.

I'm still hoping someone will try to reproduce under Windows since you have already told us that you see no problem on your Mac.
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]
Dabrosny
Posts: 111
Joined: 2013-10-02T10:49:39-07:00
Authentication code: 6789
Location: New York, US

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by Dabrosny »

Would anyone please try opening the mentioned memorial.hdr file in display.exe under Windows (with HDRI and/or not)?

I've now *also* tested it on a Non-hdri Cygwin ImageMagick 6.9.1-3 Q16 i686 2015-06-21 (DPC OpenMP) (Cygwin 2.0.4 32-bit) and the issue does *not* occur there.
Fred already said the issue did *not* occur on his Mac (perhaps, like cygwin, this is a unix-like build?).

So far, the problem has occurred for me in these Windows HDRI builds:
7.0.6-2 Q16 x64 2017-07-22; Visual C++: 180040629; Cipher DPC HDRI Modules OpenMP
7.0.2-9 Q16 x86 2016-08-14; Visual C++: 180040629; Cipher DPC HDRI Modules OpenMP
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by fmw42 »

Mac and Cygwin are unix systems. If you have Windows 10. you could also test its unix environment. So it sounds like a Windows issue. Sorry, I do not have a Windows system to test or I would do it.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by snibgo »

I don't use imdisplay. But the image does show as I would expect using imdisplay in both v6.9.5-3 and v7.0.3-5, Q16, non-HDRI, on Windows 8.1, if that's any help.
snibgo's IM pages: im.snibgo.com
Dabrosny
Posts: 111
Joined: 2013-10-02T10:49:39-07:00
Authentication code: 6789
Location: New York, US

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by Dabrosny »

Can anyone out there try it with an HDRI Windows build?

Sounds like the values aren't being clamped properly in these HDRI Windows builds.
snibgo wrote: 2017-08-08T11:52:31-07:00 I don't use imdisplay. But the image does show as I would expect using imdisplay in both v6.9.5-3 and v7.0.3-5, Q16, non-HDRI, on Windows 8.1, if that's any help.
-Dabrosny [Using IM7.0.6 or higher, Q16 HDRI x64 native executable, command line, often invoked from cygwin bash/sh (as of Aug. 2017)]
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: imdisplay doesn't work with HDR (Radiance) image format

Post by GeeMack »

Dabrosny wrote: 2017-08-08T12:29:09-07:00Can anyone out there try it with an HDRI Windows build?
Using IM 7.0.6-5 HDRI on Windows 10, and opening your memorial.hdr with imdisplay.exe, this is a screen cap of the image displayed...

Image
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: [Reproduced by 2nd person on 7.0.6/HDRI/Windows -edit] imdisplay doesn't work with HDR (Radiance) image format

Post by dlemstra »

I just pushed a fix to our git repository to fix this in imdisplay for IM7 and IM6.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply