{"action":"created","issue":{"url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/440","repository_url":"https://api.github.com/repos/SixLabors/ImageSharp","labels_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/440/comments","events_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/440/events","html_url":"https://github.com/SixLabors/ImageSharp/issues/440","id":290095902,"number":440,"title":"Progressive jpeg with missing EOI marker throws EOFException (Part 2)","user":{"login":"justintubbs","id":12716768,"avatar_url":"https://avatars1.githubusercontent.com/u/12716768?v=4","gravatar_id":"","url":"https://api.github.com/users/justintubbs","html_url":"https://github.com/justintubbs","followers_url":"https://api.github.com/users/justintubbs/followers","following_url":"https://api.github.com/users/justintubbs/following{/other_user}","gists_url":"https://api.github.com/users/justintubbs/gists{/gist_id}","starred_url":"https://api.github.com/users/justintubbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintubbs/subscriptions","organizations_url":"https://api.github.com/users/justintubbs/orgs","repos_url":"https://api.github.com/users/justintubbs/repos","events_url":"https://api.github.com/users/justintubbs/events{/privacy}","received_events_url":"https://api.github.com/users/justintubbs/received_events","type":"User","site_admin":false},"labels":[{"id":592896187,"url":"https://api.github.com/repos/SixLabors/ImageSharp/labels/area:formats:jpeg","name":"area:formats:jpeg","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-19T20:21:15Z","updated_at":"2018-02-09T01:11:16Z","closed_at":null,"author_association":"NONE","body":"Similar to [this previously closed Issue](https://github.com/SixLabors/ImageSharp/issues/18), I have JPG files from iPhone 3 and other devices that still gets this error:\r\n\r\n**Example JPG images:**\r\n[image1.jpg](http://justintubbs.com/files/image1.jpg)\r\n[image2.jpg](http://justintubbs.com/files/image2.jpg)\r\n\r\nUsing ImageSharp nightly dev NuGet (also tried stable/release which has same issue)\r\n```\r\n<PackageReference Include=\"SixLabors.ImageSharp\" Version=\"1.0.0-dev000642\" />\r\n```\r\n\r\n**Stack Trace:**\r\n```\r\nSixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder.EOFException\r\n  HResult=0x80131500\r\n  Message=Reached end of stream before proceeding EOI marker!\r\n  Source=SixLabors.ImageSharp\r\n  StackTrace:\r\n   at SixLabors.ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder.DecoderThrowHelper.ThrowExceptionForErrorCode(OrigDecoderErrorCode errorCode)\r\n   at SixLabors.ImageSharp.Formats.Jpeg.GolangPort.OrigJpegDecoderCore.ParseStream(Stream stream, Boolean metadataOnly)\r\n   at SixLabors.ImageSharp.Formats.Jpeg.JpegDecoder.Decode[TPixel](Configuration configuration, Stream stream)\r\n   at AdvisorSolutions360.WebApi.Controllers.AdvisorsController.UpdateReportBranding(Guid advisorId, String PrimaryColor, String SecondaryColor, IFormFile file) in C:\\Users\\jtubbs\\Desktop\\code\\AdvisorSolutions360.WebApi\\Controllers\\AdvisorsController.cs:line 160\r\n   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\r\n   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()\r\n```\r\n\r\n**Code I'm using:**\r\n```\r\nusing SixLabors.ImageSharp;\r\nusing SixLabors.ImageSharp.Formats;\r\n\r\npublic IActionResult UpdateReportBranding([FromForm] IFormFile file)\r\n{\r\n   var ms = new MemoryStream();\r\n   file.OpenReadStream().CopyTo(ms);\r\n   IImageDecoder decoder = new SixLabors.ImageSharp.Formats.Jpeg.JpegDecoder();\r\n   var image = Image.Load(ms, decoder); << EXCEPTION\r\n```\r\n\r\n**Workaround**\r\nAs mentioned in [Issue #18](https://github.com/SixLabors/ImageSharp/issues/18#issuecomment-273634942), I can add a try/catch to \"fix\" this issue"},"comment":{"url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/comments/364303459","html_url":"https://github.com/SixLabors/ImageSharp/issues/440#issuecomment-364303459","issue_url":"https://api.github.com/repos/SixLabors/ImageSharp/issues/440","id":364303459,"user":{"login":"JimBobSquarePants","id":385879,"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-02-09T01:11:15Z","updated_at":"2018-02-09T01:11:15Z","author_association":"OWNER","body":"@alexsorokoletov You can see them? Great! \r\n\r\nCan you do me a huge favor and add them in a zip file to this thread? We're all getting 403 Forbidden statuses when trying to view the images."}}
{"actor":{"display_login":"JimBobSquarePants"}}