{"action":"opened","issue":{"url":"https://api.github.com/repos/opensagres/xdocreport/issues/20","labels_url":"https://api.github.com/repos/opensagres/xdocreport/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/opensagres/xdocreport/issues/20/comments","events_url":"https://api.github.com/repos/opensagres/xdocreport/issues/20/events","html_url":"https://github.com/opensagres/xdocreport/issues/20","id":63206915,"number":20,"title":"SimpleImageInfo does not support JPEG/Exif format","user":{"login":"Rizen59","id":321846,"avatar_url":"https://avatars.githubusercontent.com/u/321846?v=3","gravatar_id":"","url":"https://api.github.com/users/Rizen59","html_url":"https://github.com/Rizen59","followers_url":"https://api.github.com/users/Rizen59/followers","following_url":"https://api.github.com/users/Rizen59/following{/other_user}","gists_url":"https://api.github.com/users/Rizen59/gists{/gist_id}","starred_url":"https://api.github.com/users/Rizen59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rizen59/subscriptions","organizations_url":"https://api.github.com/users/Rizen59/orgs","repos_url":"https://api.github.com/users/Rizen59/repos","events_url":"https://api.github.com/users/Rizen59/events{/privacy}","received_events_url":"https://api.github.com/users/Rizen59/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T10:41:48Z","updated_at":"2015-03-20T10:41:48Z","closed_at":null,"body":"Hello everyone,\r\n\r\nSome jpeg images are not recognized by the SimpleImageInfo class. Here is a simple test to reproduce the problem:\r\n```\r\nInputStream in = TestClass.class.getResourceAsStream(\"your-image.jpg\");\r\nSimpleImageInfo info = new SimpleImageInfo(in);\r\nSystem.out.println(info.getMimeType());\r\n```\r\nHere are two different JPEG files format found on google:\r\nA JPEG/JFIF format : http://www.w3.org/MarkUp/Test/xhtml-print/20050519/tests/jpeg422jfif.jpg\r\nA JPEG/Exif format : http://abbysfloraldesigns.com/wp-content/uploads/2012/11/2004-12-21-071.jpg\r\n\r\nIn case of the exif image (which is the format used by some digital cameras) an IOException is thrown (message = \"Unsupported image type\") : this can cause a failure during the report generation.\r\nAfter some research this format is using an Appn marker that is not seem to be take into account on the algorithm.\r\n\r\nThanks in advance for your feedback."}}