{"action":"created","issue":{"url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/646","repository_url":"https://api.github.com/repos/SixLabors/ImageSharp","labels_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/646/comments","events_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/646/events","html_url":"https://github.com/SixLabors/ImageSharp/issues/646","id":337788306,"node_id":"MDU6SXNzdWUzMzc3ODgzMDY=","number":646,"title":"ArgumentException on loading JPEG image","user":{"login":"xakep139","id":6381023,"node_id":"MDQ6VXNlcjYzODEwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/6381023?v=4","gravatar_id":"","url":"https://api.github.com/users/xakep139","html_url":"https://github.com/xakep139","followers_url":"https://api.github.com/users/xakep139/followers","following_url":"https://api.github.com/users/xakep139/following{/other_user}","gists_url":"https://api.github.com/users/xakep139/gists{/gist_id}","starred_url":"https://api.github.com/users/xakep139/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xakep139/subscriptions","organizations_url":"https://api.github.com/users/xakep139/orgs","repos_url":"https://api.github.com/users/xakep139/repos","events_url":"https://api.github.com/users/xakep139/events{/privacy}","received_events_url":"https://api.github.com/users/xakep139/received_events","type":"User","site_admin":false},"labels":[{"id":592896187,"node_id":"MDU6TGFiZWw1OTI4OTYxODc=","url":"https://api.github.com/repos/SixLabors/ImageSharp/labels/area:formats:jpeg","name":"area:formats:jpeg","color":"fbca04","default":false},{"id":635725317,"node_id":"MDU6TGFiZWw2MzU3MjUzMTc=","url":"https://api.github.com/repos/SixLabors/ImageSharp/labels/area:metadata:icc","name":"area:metadata:icc","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-03T08:08:23Z","updated_at":"2018-07-03T12:13:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Prerequisites\r\n\r\n- [x] I have written a descriptive issue title\r\n- [x] I have verified that I am running the latest version of ImageSharp\r\n- [ ] I have verified if the problem exist in both `DEBUG` and `RELEASE` mode\r\n- [x] I have searched [open](https://github.com/SixLabors/ImageSharp/issues) and [closed](https://github.com/SixLabors/ImageSharp/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported\r\n\r\n### Description\r\n<!-- A description of the bug or feature -->\r\nI try to load JPEG image that displays normally and loads normally with .NET Framework's `System.Drawing.Image.FromFile()`. But I get an exception with message:\r\n```\r\nData length must be at least 128 to be a valid profile header\r\nParameter name: data\r\n```\r\nStacktrace:\r\n```\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccReader.ReadHeader(Byte[] data)\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccProfile.InitializeHeader()\r\n   at SixLabors.ImageSharp.MetaData.Profiles.Icc.IccProfile.CheckIsValid()\r\n   at SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.PdfJsJpegDecoderCore.InitDerivedMetaDataProperties()\r\n   at SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.PdfJsJpegDecoderCore.Identify(Stream stream)\r\n   at SixLabors.ImageSharp.Formats.Jpeg.JpegDecoder.Identify(Configuration configuration, Stream stream)\r\n   at SixLabors.ImageSharp.Image.InternalIdentity(Stream stream, Configuration config)\r\n   at ImageSharpTest.Program.Main(String[] args) in C:\\Users\\User\\Documents\\Visual Studio 2017\\Projects\\ImageSharpTest\\Program.cs:line 15\r\n```\r\n\r\n### Steps to Reproduce\r\n<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior -->\r\n`Image.Load()` or `Image.Identify()` on image in [image.zip](https://github.com/SixLabors/ImageSharp/files/2158191/image.zip)\r\n\r\n### System Configuration\r\n<!-- Tell us about the environment where you are experiencing the bug -->\r\n\r\n- ImageSharp version: [1.0.0-dev001615](https://www.myget.org/feed/sixlabors/package/nuget/SixLabors.ImageSharp/1.0.0-dev001615)\r\n- Other ImageSharp packages and versions:\r\n- Environment (Operating system, version and so on): Windows 10 Enterprise Version 1709 Build 16299\r\n- Additional information: Visual Studio Professional 2017 Version 15.7.4\r\n- `dotnet --info` output:\r\n```\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.301\r\n Commit:    59524873d6\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.16299\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.301\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.1\r\n  Commit:  6985b9f684\r\n```\r\n\r\n<!-- Thanks for reporting the issue to ImageSharp! -->\r\n"},"comment":{"url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/comments/402134104","html_url":"https://github.com/SixLabors/ImageSharp/issues/646#issuecomment-402134104","issue_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/646","id":402134104,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjEzNDEwNA==","user":{"login":"JimBobSquarePants","id":385879,"node_id":"MDQ6VXNlcjM4NTg3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/385879?v=4","gravatar_id":"","url":"https://api.github.com/users/JimBobSquarePants","html_url":"https://github.com/JimBobSquarePants","followers_url":"https://api.github.com/users/JimBobSquarePants/followers","following_url":"https://api.github.com/users/JimBobSquarePants/following{/other_user}","gists_url":"https://api.github.com/users/JimBobSquarePants/gists{/gist_id}","starred_url":"https://api.github.com/users/JimBobSquarePants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimBobSquarePants/subscriptions","organizations_url":"https://api.github.com/users/JimBobSquarePants/orgs","repos_url":"https://api.github.com/users/JimBobSquarePants/repos","events_url":"https://api.github.com/users/JimBobSquarePants/events{/privacy}","received_events_url":"https://api.github.com/users/JimBobSquarePants/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T12:13:58Z","updated_at":"2018-07-03T12:13:58Z","author_association":"MEMBER","body":"You rock! 🤘 "}}
{"actor":{"display_login":"JimBobSquarePants"}}