Error: no decode delegate for this image format `' @ error/blob.c/CustomStreamToImage/765
See original GitHub issueThis 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:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Here’s a gist that can be loaded into an empty project.