This project has moved. For the latest updates, please go here.

tiff Rotate error

Feb 1, 2016 at 2:18 PM
User got below error after rotating a tiff image by 90 degrees twice. All attempts to rotate third time to correct orientation would throw below error. This is not happening for all the images and we see this error only once every couple of months. Do we know what this error code is?

Message:
w3wp.exe: IO error writing tag data. `TIFFWriteDirectoryTagData' @ error/tiff.c/TIFFErrors/556
StackTrace:
 at ImageMagick.Wrapper.MagickImage.HandleException(MagickException exception)
at ImageMagick.Wrapper.MagickImage.ToByteArray()
Method Definition:
public byte[] Rotate(byte[] data)
        {
            byte[] result=null; 
                    using (MagickImage image = new MagickImage(data))
                    {
                        image.Rotate(90);
                        result = image.ToByteArray();
                    }  
            }
            return result;
        }
Thanks you in advance!
Coordinator
Feb 1, 2016 at 5:13 PM
Do you have an input image that I can use to reproduce this? If it is not happening for all the images I would really need one image that I can use to reproduce the issue. Feel free to contact me through CodePlex if you don't want to share it publicly.