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

Support test matchers with only Vips #2767

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gaffneyc
Copy link

@gaffneyc gaffneyc commented Dec 17, 2024

This adds support for using the test matchers when using Vips and neither MiniMagick or Magick are installed. In our case it was falling back to Magick since MiniMagick wasn't available. I didn't see any tests for the matchers and I'm not sure if there is even a good way to test the switching logic. That said, I've tested these changes against our application and they fixed the issue we were seeing.

The one idiosyncrasy is that there isn't a clean way to get the format like with the Magick libraries. The best Vips can do is to tell which loader was used (e.g. "pngload") which I'm guessing is based on the extension.

This adds support for using the test matchers when neither MiniMagick or
Magick are installed.
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.

1 participant