Ufff, I had similar problem.
Magick.NET throws "ImageMagick.MagickMissingDelegateErrorException" on creation of MagickImage object from Stream with error message like "no decode delegate for this image format `' @ error/blob.c/CustomStreamToImage/761".
When I saved the Stream into file, picture is absolutely OK..
... After almost 2 days of debugging/trying I recognized, that this error with the same Stream sometimes throws, sometimes not...
-> the problem is in Stream state. Before MagickImage creation it has to be Seek into beginning!! Maybe this is error in ImageMagick, because... :-/
public ResizedImageWithMetadata GetResizedImageWithMetadata(Stream content,..)
{
try
{
if (content == null)
{
throw new ArgumentNullException($"Image content is empty!");
}
using (MagickImage image = new MagickImage(content))
{
// unexpected exception...
Correct:
public ResizedImageWithMetadata GetResizedImageWithMetadata(Stream content,..)
{
try
{
if (content == null)
{
throw new ArgumentNullException($"Image content is empty!");
}
content.Seek(0, SeekOrigin.Begin); //THIS IS NEEDED!!!
using (MagickImage image = new MagickImage(content))
{