HDRI - -auto-level not working

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
rnbc
Posts: 109
Joined: 2010-04-11T18:27:46-07:00
Authentication code: 8675308

HDRI - -auto-level not working

Post 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...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: HDRI - -auto-level not working

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: HDRI - -auto-level not working

Post 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.
rnbc
Posts: 109
Joined: 2010-04-11T18:27:46-07:00
Authentication code: 8675308

Re: HDRI - -auto-level not working

Post by rnbc »

It works fine now, thanks again!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: HDRI - -auto-level not working

Post 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).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: HDRI - -auto-level not working

Post by fmw42 »

changelog says it was with EXR clilpping not auto-level
rnbc
Posts: 109
Joined: 2010-04-11T18:27:46-07:00
Authentication code: 8675308

Re: HDRI - -auto-level not working

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: HDRI - -auto-level not working

Post 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
Post Reply