Hi,
I'm using magick net library to convert image from jpg/png image into tif. Besides conversion I need apply some transformation for image (Trim, SetColorProfile, Resize, etc.).
For most of images it works just well, but for some of them it throws error like:
`IO error writing tag data. 'TIFFWriteDirectoryTagData' @ error/tiff.c/TIFFErrors/565`.
This error not happens if during conversion skipped SetColorProfile step. Before similar error was for Trim, but we updated library from version "Magick.NET.Core-Q8 7.0.2.400", to "Magick.NET.Core-Q8 7.0.3.300", and it fixed problem, but now it happens for another operations. Stack trace does not told me reason of error:
`
"at ImageMagick.MagickImage.NativeMagickImage.WriteBlob(MagickSettings settings, UIntPtr& length)\r\n
at ImageMagick.MagickImage.Write(Stream stream)\r\n
at ImageMagick.MagickImage.ToByteArray()\r\n "
`
NOTE: Console tool of ImageMagick works for problematin image.
I prepared sample to reproduce the problem. https://github.com/inteno/ImageMagickTifError
Comments: See github: https://github.com/dlemstra/Magick.NET/issues/26
I'm using magick net library to convert image from jpg/png image into tif. Besides conversion I need apply some transformation for image (Trim, SetColorProfile, Resize, etc.).
For most of images it works just well, but for some of them it throws error like:
`IO error writing tag data. 'TIFFWriteDirectoryTagData' @ error/tiff.c/TIFFErrors/565`.
This error not happens if during conversion skipped SetColorProfile step. Before similar error was for Trim, but we updated library from version "Magick.NET.Core-Q8 7.0.2.400", to "Magick.NET.Core-Q8 7.0.3.300", and it fixed problem, but now it happens for another operations. Stack trace does not told me reason of error:
`
"at ImageMagick.MagickImage.NativeMagickImage.WriteBlob(MagickSettings settings, UIntPtr& length)\r\n
at ImageMagick.MagickImage.Write(Stream stream)\r\n
at ImageMagick.MagickImage.ToByteArray()\r\n "
`
NOTE: Console tool of ImageMagick works for problematin image.
I prepared sample to reproduce the problem. https://github.com/inteno/ImageMagickTifError
Comments: See github: https://github.com/dlemstra/Magick.NET/issues/26