Problem with -fx in IM7?
Posted: 2015-12-13T20:38:30-07:00
I use ImageMagick to process and analyze several types of scientific data including solar images from NASA. One of my scripts does a difference comparison between two images taken a various time intervals. I run the IM commands from batch files on Windows 7 Pro 64. The line from the script that does the work on IM 6.x looks like this...
This simply takes "sample1.png", adds #808080, then subtracts "sample2.png", and the output image is "converted.png". Changes between sources images show as brighter or darker in the result. Anything that hasn't changed between source images becomes neutral, or 128,128,128 gray (give or take a bit from normalizing). The input files and the output can be seen here...
sample1.png
(https://www.dropbox.com/s/i0z2guyugv3pb ... 1.png?dl=0)
sample2.png
(https://www.dropbox.com/s/srm4lx1512fco ... 2.png?dl=0)
converted.png
(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...
... results in an error, and the process bails out before completion. Windows 7 Pro 64 produces this error window...
Windows error message...
(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?
Code: Select all
convert sample1.png sample2.png -fx "u + #808080 - v" -normalize converted.png
sample1.png
(https://www.dropbox.com/s/i0z2guyugv3pb ... 1.png?dl=0)
sample2.png
(https://www.dropbox.com/s/srm4lx1512fco ... 2.png?dl=0)
converted.png
(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...
(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?