-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with ImageMagick 7 #360
base: develop
Are you sure you want to change the base?
Compatibility with ImageMagick 7 #360
Conversation
- change `convert` to `magick` and `compare` to `magick compare` - change order of arguments to put input file before operations - in computation of diff, remove "-background white -flatten" but I do not know why
Did you test these changes against earlier versions of ImageMagik to see if they were backwards compatible? |
No, sorry -- what's the earliest version you want to support? |
(And what version do you use?) |
I'm using 6.9.13-21, though I'm now noticing for the first time that this is now considered legacy and 7 is now production. I have not been tracking ImageMagick development. I don't have time to do it tonight, but let me see about upgrading my ImageMagick installation and seeing how things go from there before we make any decisions about what versions we should support. |
Done, hopefully that works with both versions now. |
- change `convert` to `magick` and `compare` to `magick compare` - change order of arguments to put input file before operations - in computation of diff, remove "-background white -flatten" but I do not know why
These were the changes I needed to make to get the test script working (tested with 7.1.1-43):
convert
tomagick
andcompare
tomagick compare
. This was just to silence the warning that was printed every timeconvert
was run.-background white -flatten
, but I admittedly have no idea why. As it was, the output of-compose difference -composite
was empty, and the final diff did not look right.