v7 -distort changes gamma

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

v7 -distort changes gamma

Post by snibgo »

Initially reported in thread viewtopic.php?f=1&t=29895

In v7.0.1-4 (Windows 8.1), all the "-distort" options change the gamma to 0.4545 (without changing the pixel values).

For example:

Code: Select all

f:\web\im>%IMG7%magick -size 1x100 gradient: -grayscale Rec709Luminance -verbose +write info: -distort Barrel "0,0,1" -verbose info: |findstr Gamma

  Gamma: 1
  Gamma: 0.454545

f:\web\im>%IMG7%magick -size 1x100 gradient: -grayscale Rec709Luminance -verbose +write info: -distort Shepards "0,0,1,1" -verbose info: |findstr Gamma

  Gamma: 1
  Gamma: 0.454545

f:\web\im>%IMG7%magick -size 1x100 gradient: -grayscale Rec709Luminance -verbose +write info: -distort SRT "1,0" -verbose info: |findstr Gamma

  Gamma: 1
  Gamma: 0.454545
"findstr" is a Microsoft version of grep.

This problem did not occur in v6.9.2-5.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: v7 -distort changes gamma

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: v7 -distort changes gamma

Post by glennrp »

I don't see "-grayscale <colorspace>" listed among the commandline options at http://imagemagick.org/script/command-l ... php#option (although "-grayscale <method>" does show up on the help screen if I type "magick convert").
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: v7 -distort changes gamma

Post by magick »

Try now.
Post Reply