Skip to content
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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

davidweichiang
Copy link
Contributor

These were the changes I needed to make to get the test script working (tested with 7.1.1-43):

  • Change convert to magick and compare to magick compare. This was just to silence the warning that was printed every time convert was run.
  • Change order of arguments to put input file before operations. This became necessary after the first change.
  • In the computation of diff, remove -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.

- 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
@rpspringuel
Copy link
Contributor

Did you test these changes against earlier versions of ImageMagik to see if they were backwards compatible?

@davidweichiang
Copy link
Contributor Author

No, sorry -- what's the earliest version you want to support?

@davidweichiang
Copy link
Contributor Author

(And what version do you use?)

@rpspringuel
Copy link
Contributor

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.

@davidweichiang
Copy link
Contributor Author

Looks good in version 6.9.13:

image

And version 7.1.1:

image

But since the two versions want to be called in different ways, it should be an environment variable, so this is not ready to merge.

@davidweichiang
Copy link
Contributor Author

Done, hopefully that works with both versions now.

@davidweichiang davidweichiang changed the title Compatibility with ImageMagick 7 (?) Compatibility with ImageMagick 7 Feb 5, 2025
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants