{"action":"created","issue":{"url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/305","repository_url":"https://api.github.com/repos/dlemstra/Magick.NET","labels_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/305/comments","events_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/305/events","html_url":"https://github.com/dlemstra/Magick.NET/issues/305","id":357663084,"node_id":"MDU6SXNzdWUzNTc2NjMwODQ=","number":305,"title":"`_TIFFVSetField' @ error/tiff.c/TIFFErrors/650","user":{"login":"adriapa5","id":13584643,"node_id":"MDQ6VXNlcjEzNTg0NjQz","avatar_url":"https://avatars0.githubusercontent.com/u/13584643?v=4","gravatar_id":"","url":"https://api.github.com/users/adriapa5","html_url":"https://github.com/adriapa5","followers_url":"https://api.github.com/users/adriapa5/followers","following_url":"https://api.github.com/users/adriapa5/following{/other_user}","gists_url":"https://api.github.com/users/adriapa5/gists{/gist_id}","starred_url":"https://api.github.com/users/adriapa5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriapa5/subscriptions","organizations_url":"https://api.github.com/users/adriapa5/orgs","repos_url":"https://api.github.com/users/adriapa5/repos","events_url":"https://api.github.com/users/adriapa5/events{/privacy}","received_events_url":"https://api.github.com/users/adriapa5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-06T13:47:01Z","updated_at":"2018-09-06T19:00:55Z","closed_at":null,"author_association":"NONE","body":"### Prerequisites\r\n\r\n- [x] I have written a descriptive issue title\r\n- [x] I have verified that I am using the latest version of Magick.NET\r\n- [x] I have searched [open](https://github.com/dlemstra/Magick.NET/issues) and [closed](https://github.com/dlemstra/Magick.NET/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported\r\n\r\n### Description\r\nHi,\r\n\r\nI'm using magick net library to read images from several image formats. \r\nFor most of images it works just well, but for some of them it throws error like:\r\n: Null count for \"Tag 34026\" (type 1, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/650\r\n\r\nThis is the StackTrace:   \"at ImageMagick.NativeInstance.CheckException(IntPtr exception, IntPtr result)\r\n   at ImageMagick.MagickImage.NativeMagickImage.ReadStream(MagickSettings settings, ReadWriteStreamDelegate reader, SeekStreamDelegate seeker, TellStreamDelegate teller)\r\n   at ImageMagick.MagickImage.Read(Stream stream, MagickReadSettings readSettings, Boolean ping)\r\n   at Alexandria.Aira.ImageProcessor.API.Services.ImageProcessor.ProcessImage(DownloadedImage downloadedImage, MagickGeometry& resizedSize)\"\r\n\r\n### Steps to Reproduce\r\nThis is a Console Application (.NET Core). At this moment, I would like to send you the image but I should ask if I can do it, due to copyright reasons.\r\n\r\n```\r\nclass Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            try\r\n            {\r\n                using (FileStream stream = File.Open(\"test.TIF\", FileMode.Open))\r\n                {\r\n                    using (MagickImage image = new MagickImage(stream))\r\n                    {\r\n                        image.Resize(500, 500);\r\n                    }\r\n                }\r\n            }\r\n            catch (Exception ex)\r\n            {\r\n                 Console.WriteLine(\"{0} {1}\",ex.Message, ex.StackTrace);\r\n            }\r\n            Console.ReadLine();\r\n        }\r\n    }\r\n\r\n```\r\nBesides, I install the ImageMagick library in a Linux machine and execute the \"identify\" command to get more information. You can find attached the output of that file (identify.txt).\r\nIt seems to be a problem when ImageMagick library try to read the image. Is able to do it but throw several exceptions. I find that info here: http://www.imagemagick.org/discourse-server/viewtopic.php?t=32547\r\n\r\n### System Configuration\r\nI'm using Magick.NET-Q8-AnyCPU package version 7.7.0 in a ASP.NET Core Application.\r\n\r\nThanks in advance\r\n\r\nAdri\r\n\r\n<!-- Thanks for reporting this issue to Magick.NET! -->\r\n[identify.txt](https://github.com/dlemstra/Magick.NET/files/2357274/identify.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/comments/419205924","html_url":"https://github.com/dlemstra/Magick.NET/issues/305#issuecomment-419205924","issue_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/305","id":419205924,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTIwNTkyNA==","user":{"login":"dlemstra","id":10426229,"node_id":"MDQ6VXNlcjEwNDI2MjI5","avatar_url":"https://avatars3.githubusercontent.com/u/10426229?v=4","gravatar_id":"","url":"https://api.github.com/users/dlemstra","html_url":"https://github.com/dlemstra","followers_url":"https://api.github.com/users/dlemstra/followers","following_url":"https://api.github.com/users/dlemstra/following{/other_user}","gists_url":"https://api.github.com/users/dlemstra/gists{/gist_id}","starred_url":"https://api.github.com/users/dlemstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlemstra/subscriptions","organizations_url":"https://api.github.com/users/dlemstra/orgs","repos_url":"https://api.github.com/users/dlemstra/repos","events_url":"https://api.github.com/users/dlemstra/events{/privacy}","received_events_url":"https://api.github.com/users/dlemstra/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T19:00:55Z","updated_at":"2018-09-06T19:00:55Z","author_association":"OWNER","body":"The ImageMagick and tiff library are very strict when reading files. It appears that your input image is corrupt."}}
{"actor":{"display_login":"dlemstra"}}