{"action":"created","issue":{"url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/482","repository_url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor","labels_url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/482/comments","events_url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/482/events","html_url":"https://github.com/JimBobSquarePants/ImageProcessor/issues/482","id":179436981,"number":482,"title":"ImageProcessorCore throws \"Invalid bmp colormap size '1024'\"","user":{"login":"vdachev","id":6223745,"avatar_url":"https://avatars.githubusercontent.com/u/6223745?v=3","gravatar_id":"","url":"https://api.github.com/users/vdachev","html_url":"https://github.com/vdachev","followers_url":"https://api.github.com/users/vdachev/followers","following_url":"https://api.github.com/users/vdachev/following{/other_user}","gists_url":"https://api.github.com/users/vdachev/gists{/gist_id}","starred_url":"https://api.github.com/users/vdachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdachev/subscriptions","organizations_url":"https://api.github.com/users/vdachev/orgs","repos_url":"https://api.github.com/users/vdachev/repos","events_url":"https://api.github.com/users/vdachev/events{/privacy}","received_events_url":"https://api.github.com/users/vdachev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T09:09:17Z","updated_at":"2016-09-27T10:27:04Z","closed_at":null,"body":"Hello,\r\n\r\nFirst of all, I want to thank you for the awesome job you have done on porting `ImageProcessor` to the .NET Core!\r\n\r\nI've been playing around with it... and tried to load a 24-bit Bitmap file (I converted a JPEG image w/ Paint) and it failed with the following exception:\r\n\r\n> Invalid bmp colormap size '1024'\r\n\r\nwhich is obviously thrown on line 109 of _[BmpDecoderCore.cs](https://github.com/JimBobSquarePants/ImageProcessor/blob/Core/src/ImageProcessorCore/Formats/Bmp/BmpDecoderCore.cs)_:\r\n\r\n```csharp\r\n// 255 * 4\r\nif (colorMapSize > 1020)\r\n{\r\n  throw new ImageFormatException($\"Invalid bmp colormap size '{colorMapSize}'\");\r\n}\r\n```\r\n\r\nI admit I am not aware of any BMP specifications but the fact that an error is thrown on a seemingly valid file (note `ImageProcessor` loads the file correctly) is bothering me."},"comment":{"url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/comments/249826749","html_url":"https://github.com/JimBobSquarePants/ImageProcessor/issues/482#issuecomment-249826749","issue_url":"https://api.github.com/repos/JimBobSquarePants/ImageProcessor/issues/482","id":249826749,"user":{"login":"JimBobSquarePants","id":385879,"avatar_url":"https://avatars.githubusercontent.com/u/385879?v=3","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":"2016-09-27T10:27:04Z","updated_at":"2016-09-27T10:27:04Z","body":"Yup... That's a bug. Should be 1024. \r\n\r\n`Math.Pow(2, 8) * 4 = 1024`"}}
{"actor":{"display_login":"JimBobSquarePants"}}