Page 1 of 1

HDRI - -auto-level not working

Posted: 2010-05-16T18:42:23-07:00
by rnbc
Hello again!

It seems that probably while solving the quanta problems something has broke in the -auto-level command in the HDRI-enabled version...

Code: Select all

~/ImageMagick-6.6.1-5/installed/bin/convert input.exr -auto-level -gamma 2.0 -depth 8 -interlace line -quality 98 -sampling-factor 1x1 output_ok.jpg
Image

Code: Select all

~/ImageMagick-6.6.1-9/installed/bin/convert input.exr -auto-level -gamma 2.0 -depth 8 -interlace line -quality 98 -sampling-factor 1x1 output_ko.jpg
Image

Here are the example files:

http://rnbc.dyndns.org/pub/imagemagick_bug_auto_level/

PS: I only found this today because most of the time I use some form of tonemapping, which happens to mask the problem...

Re: HDRI - -auto-level not working

Posted: 2010-05-16T19:10:40-07:00
by fmw42
are you sure it is with auto-level and not one of the other commands? have you tried running -auto-level by itself?

Re: HDRI - -auto-level not working

Posted: 2010-05-16T19:13:25-07:00
by magick
We can reproduce the problem you posted and will have a patch in ImageMagick 6.6.1-10 Beta by sometime tomorrow. Thanks.

Re: HDRI - -auto-level not working

Posted: 2010-05-17T09:47:31-07:00
by rnbc
It works fine now, thanks again!

Re: HDRI - -auto-level not working

Posted: 2010-05-17T23:39:07-07:00
by anthony
Where was this bug? I can't see any change in code.
I also can not see how -auto-level would have been effected by HDRI.
I should know, I wrote it (part of future updates for replacement of existing histogram controls).

Re: HDRI - -auto-level not working

Posted: 2010-05-18T08:45:10-07:00
by fmw42
changelog says it was with EXR clilpping not auto-level

Re: HDRI - -auto-level not working

Posted: 2010-05-18T15:00:44-07:00
by rnbc
Hum... well, in fact I never tested with other HDR input formats apart from EXR... so it was a bug in EXR after all, right?

Re: HDRI - -auto-level not working

Posted: 2010-05-18T16:21:43-07:00
by fmw42
rnbc wrote:Hum... well, in fact I never tested with other HDR input formats apart from EXR... so it was a bug in EXR after all, right?
From changelog:

2010-05-15 6.6.1-10 Cristy <quetzlzacatenango@image...>
Use ScaleCharToQuantum() in coders/src.c (reference viewtopic.php?f=3&t=16229).
Don't clamp HDRI EXR pixels.


see http://www.imagemagick.org/script/changelog.php