Code: Select all
convert sample1.png sample2.png -fx "u + #808080 - v" -normalize converted.png
sample1.png
![Image](https://www.dropbox.com/s/i0z2guyugv3pboe/sample1.png?dl=0)
(https://www.dropbox.com/s/i0z2guyugv3pb ... 1.png?dl=0)
sample2.png
![Image](https://www.dropbox.com/s/srm4lx1512fcogd/sample2.png?dl=0)
(https://www.dropbox.com/s/srm4lx1512fco ... 2.png?dl=0)
converted.png
![Image](https://www.dropbox.com/s/nqrbemposixl68s/converted.png?dl=0)
(https://www.dropbox.com/s/nqrbemposixl6 ... d.png?dl=0)
This works using "ImageMagick 6.9.2-8 Q16 x64 2015-12-05", and has always worked with various 6.x versions for at least the past 3 years. Now I'm running into a problem making the scripts work with the current "ImageMagick 7.0.0-0 Q16 x64 2015-12-12" and the past several recent versions of IM7. The exact same command using IM7...
Code: Select all
magick sample1.png sample2.png -fx "u + #808080 - v" -normalize converted.png
Windows error message...
![Image](https://www.dropbox.com/s/yd57zht7aga067m/error001.jpg?dl=0)
(https://www.dropbox.com/s/yd57zht7aga06 ... 1.jpg?dl=0)
I've tried the HDRI and non-HDRI versions, larger and smaller source files, JPGs, PNGs, and JP2s, color and grayscale. I've tried using several variations on #808080, rgb(128, 128, 128), and gray50 for the color value. The command always succeeds with the IM 6.x "convert" command and always fails with the IM7 "magick" command.
I have no idea what's wrong here. Do you?
![Smile :)](./images/smilies/icon_smile.gif)