Failed detecting svg format after upgrading from 7.4.6 to 7.5.0
See original GitHub issueWe have a method which uses Magick.NET to detect image format from its binary header byte[] image = …; MagickImageInfo info = new MagickImageInfo(image); return info.Format;
This used to work while using version 7.4.6 but it fails in version 7.5.0 when image byte array is an svg image. There is an error “no decode delegate for this image format `’ @ error/blob.c/BlobToImage/456”.
I saw that a solution is to pass to MagickImageInfo constructor settings with svg format set but that ruins the whole point of detecting the image format.
How can image format be detected in 7.5.0 from an image stored in a byte array?
And another issue: Same thing but getting format from a stream instead of a byte array now returns “Value cannot be empty. Parameter name: stream” exception while worked fine in 7.4.6.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
@guylando The new release has been published. It should now be able to also detect the svg from just the svg tag.
Seems those exceptions happened while testing in debug mode because of side effects of the watch window. We will do further tests and I will close this if nothing comes up. Thanks