{"action":"created","issue":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/11","labels_url":"https://api.github.com/repos/claviska/SimpleImage/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/claviska/SimpleImage/issues/11/comments","events_url":"https://api.github.com/repos/claviska/SimpleImage/issues/11/events","html_url":"https://github.com/claviska/SimpleImage/issues/11","id":14898497,"number":11,"title":"exif_read_data .GIF extension \"File not supported\"","user":{"login":"dirte","id":3615697,"avatar_url":"https://avatars.githubusercontent.com/u/3615697?v=3","gravatar_id":"","url":"https://api.github.com/users/dirte","html_url":"https://github.com/dirte","followers_url":"https://api.github.com/users/dirte/followers","following_url":"https://api.github.com/users/dirte/following{/other_user}","gists_url":"https://api.github.com/users/dirte/gists{/gist_id}","starred_url":"https://api.github.com/users/dirte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirte/subscriptions","organizations_url":"https://api.github.com/users/dirte/orgs","repos_url":"https://api.github.com/users/dirte/repos","events_url":"https://api.github.com/users/dirte/events{/privacy}","received_events_url":"https://api.github.com/users/dirte/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-05-29T16:14:06Z","updated_at":"2015-09-29T20:22:55Z","closed_at":"2013-06-03T15:58:40Z","body":"Trying to load a `.GIF` triggers the following error:\r\n\r\n>            [Warning (PHP)]\r\n>            [Message:]exif_read_data(3.gif) [<a href='function.exif-read-data'>function.exif-read-data</a>]: File not supported\r\n>            [File:]/lib/simpleimage.inc.php\r\n>            [Line:]67\r\n\r\nThe `load` method is calling `exif_read_data`, however, this function only works with `JPEG` and `TIFF` according to the manual (http://php.net/manual/en/function.exif-read-data.php).\r\n\r\nI didn't see any mention of this in the README or past Issues so I hope I'm not missing something! Seems like it should check for supported file types before trying to load exif data."},"comment":{"url":"https://api.github.com/repos/claviska/SimpleImage/issues/comments/144181042","html_url":"https://github.com/claviska/SimpleImage/issues/11#issuecomment-144181042","issue_url":"https://api.github.com/repos/claviska/SimpleImage/issues/11","id":144181042,"user":{"login":"RRorg","id":11065422,"avatar_url":"https://avatars.githubusercontent.com/u/11065422?v=3","gravatar_id":"","url":"https://api.github.com/users/RRorg","html_url":"https://github.com/RRorg","followers_url":"https://api.github.com/users/RRorg/followers","following_url":"https://api.github.com/users/RRorg/following{/other_user}","gists_url":"https://api.github.com/users/RRorg/gists{/gist_id}","starred_url":"https://api.github.com/users/RRorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RRorg/subscriptions","organizations_url":"https://api.github.com/users/RRorg/orgs","repos_url":"https://api.github.com/users/RRorg/repos","events_url":"https://api.github.com/users/RRorg/events{/privacy}","received_events_url":"https://api.github.com/users/RRorg/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T20:22:55Z","updated_at":"2015-09-29T20:22:55Z","body":"Since this comes up on Google when searching for similar errors, a better solution would be to wrap the exif function in a try-catch-block. This will stop the script from crashing even when dealing with a malformed file."}}