Closed enricoribelli closed 6 months ago
Try using mw.SetFormat()
or mw.SetFilename()
before your call to mw.ReadImageBlob()
to tell the wand what format to expect the bytes
@justinfx That did the trick! Thank you very much for the prompt reply!
hello team, I am trying to download an image from a URL, hence I have a
[]byte
available in memory. From there I try:Reading the image errors out with
ERROR_CODER (450), description: "TIFF directory is missing required \"ImageLength\" field.
MissingRequired' @ error/tiff.c/TIFFErrors/599"`. By reading around this is an error from the underlying ImageMagick itself which cannot understand which format is the image and falls back at guessing it's a TIFF, which is not. The code works fine when I load the same ARW image from file but I guess it doesn't have a way to identify it's an ARW when it reads it from a buffer. How do I achieve this? Thanks in advance!