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

feat: Support buffered fallback for ImageMagick #523

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

Conversation

terussell85
Copy link

vips_image_new_from_source doesn't appear to work in combination with the libvips ImageMagick loader. However, vips_image_new_from_file does.

I stumbled on this while testing imagor on newer RAW camera files, like the CR3 file found here. Without these changes, libvips fails to load the images. With the changes, it succeeds.

At a high level, this adds support for a buffered-file fallback if libvips fails to load the blob as a source and the blob is of unknown type. The file is kept only long enough to create the Image.

I tried a few different ways to do this, but this felt the least intrusive. I'm happy to try a different approach if you feel there is a better insertion point.

vips_image_new_from_source doesn't appear to work in combination with the libvips ImageMagick loader. However, vips_image_new_from_file does.

These changes add support for a buffered fallback if libvips fails to load the blob as a source and the blob is of unknown type.
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