Page 1 of 1

MagickMissingDelegateErrorException: no decode delegate for this image format

Posted: 2018-12-19T09:52:02-07:00
by Harald
Hello,

I am working with Magick.NET-Q16-AnyCPU Version 7.9.0.2.

I have a MVC application in C#. Download a TIF file via byte array.

Use this memory stream gives the following error:
---> ImageMagick.MagickMissingDelegateErrorException: no decode delegate for this image format `' @ error/blob.c/CustomStreamToImage/769
ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadStream(MagickSettings settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller)

Saving the TIF as file on the disc and load this file is working.

Two things I have tried, but without success:
1. content.Seek(0, SeekOrigin.Begin);
2. var readSettings = new MagickReadSettings() { Format = MagickFormat.Tif };
var image = new MagickImage(Stream, readSettings);

Any ideas? Thank you in advance.

Harald

Re: MagickMissingDelegateErrorException: no decode delegate for this image format

Posted: 2019-01-08T04:28:12-07:00
by Harald
Found the solution. The problem was this line in my code:
MagickImageCollection layers = new MagickImageCollection(stream)

I used same stream for the MagickImage and MagickImageCollection.
Now I use a copy of the stream for MagickImageCollection and it works!