question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: no decode delegate for this image format `' @ error/blob.c/CustomStreamToImage/765

See original GitHub issue

This error occurs after updating from 7.4.0 to 7.4.1. Are there any additional steps required for updates? The code is attempting to read svg from a url, and output an enlarged version of the image in .png format.

Code Snippet:

Using client As New HttpClient()
    Dim fileStream = Await client.GetStreamAsync(url)
    Dim settings As New MagickReadSettings With {
        .Width = 300,
        .Height = 300,
        .BackgroundColor = MagickColors.Transparent
    }
    Using outputStream As New MemoryStream
        Using image As New MagickImage(fileStream, settings) 'ERROR OCCURS HERE
            image.Format = MagickFormat.Png
            image.Write(outputStream)
            outputStream.Position = 0
            ------
        End Using
    End Using
End Using

Stack Trace:

at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result)
   at ImageMagick.MagickImage.NativeMagickImage.ReadStream(MagickSettings settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller)
   at ImageMagick.MagickImage.Read(Stream stream, MagickReadSettings readSettings, Boolean ping)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
dlemstracommented, Feb 25, 2018

Not sure why this changed between versions (maybe a bug fix?) but I can explain why you get this error. Magick.NET cannot detect the format from your fileStream. You will need to specify this in the settings.Format so ImageMagick knows how to read the file.

1reaction
Anu6iscommented, Feb 23, 2018

Here’s a gist that can be loaded into an empty project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question
ImageMagick: No decode delegate for this image format `' @ error/constitute.c/ReadImage/504 · I think your missing the command operator before ...
Read more >
"no decode delegate for this image format JPEG" - Legacy ...
I found a solution. After the delegate has worked, I found the error. The error was due to text files created in Windows....
Read more >
How to fix error No decode delegate for this image ... - YouTube
In this tutorial I will show you how to fix error " No decode delegate for this image format " ( no decode...
Read more >
PDF conversion: No decode delegate for this image format
I get the following error right after starting the command: magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/ ...
Read more >
no decode delegate for this image format - Legacy ...
I installed jasper libraries and it is on my /usr/local/bin location. and installation is successful, I am still getting same error while I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found