found the problem in the meantime (stream read from Azure Blob storage is corrupted...)
Sorry...
Hello,
The classic error:
IPS.Core.Exceptions.ProcessingException: no decode delegate for this image format `' @ error/blob.c/BlobToImage/457 ---> ImageMagick.MagickMissingDelegateErrorException: no decode delegate for this image format `' @ error/blob.c/BlobToImage/457
at ImageMagick.MagickImageCollection.NativeMagickImageCollection.ReadBlob(MagickSettings settings, Byte[] data, Int32 length)
at ImageMagick.MagickImageCollection.AddImages(Byte[] data, Int32 length, MagickReadSettings readSettings, Boolean ping)
at ImageMagick.MagickImageCollection.AddImages(Stream stream, MagickReadSettings readSettings, Boolean ping)
at ImageMagick.MagickImageCollection..ctor(Stream stream, MagickReadSettings readSettings)
Magick NET 7.10.1
Ghostscript 9.25
Azure web app
Sample code to create the IMagickImage from pdfs:
Code: Select all
private IMagickImage GetMagickImage(Stream content)
MagickReadSettings settings = new MagickReadSettings
{
FrameIndex = 0,
FrameCount = 1,
Density = new Density(200, 200, DensityUnit.PixelsPerInch)
};
MagickImageCollection magickImageCollection = new MagickImageCollection(content, settings);
IMagickImage image = magickImageCollection.FirstOrDefault();
sample file https://pimdevstor01.blob.core.windows. ... page_1.pdf
Notes:
no error when running the code locally
no error with All other PDFs
tried 32/64 bits same result
Thanks to help !