{"action":"created","issue":{"url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/205","labels_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/205/comments","events_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/205/events","html_url":"https://github.com/FLIF-hub/FLIF/issues/205","id":121817558,"number":205,"title":"1-pixel file: \"rendering at quality=200.00%\"; file corrupted","user":{"login":"matthiaskrgr","id":476013,"avatar_url":"https://avatars.githubusercontent.com/u/476013?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiaskrgr","html_url":"https://github.com/matthiaskrgr","followers_url":"https://api.github.com/users/matthiaskrgr/followers","following_url":"https://api.github.com/users/matthiaskrgr/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskrgr/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskrgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskrgr/subscriptions","organizations_url":"https://api.github.com/users/matthiaskrgr/orgs","repos_url":"https://api.github.com/users/matthiaskrgr/repos","events_url":"https://api.github.com/users/matthiaskrgr/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskrgr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FLIF-hub/FLIF/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-12T00:13:27Z","updated_at":"2015-12-12T07:37:18Z","closed_at":null,"body":"I created a 1-pixel (1x1) image via gimp (150 bytes) and converted it to flif (15 bytes).\r\n````\r\n./src/flif.asan  -i  /tmp/1px.png 1pxtest.flif\r\n````\r\nNow when displaying this with viewflif, viewflif says\r\n````\r\nDecoding progressively...\r\nFile ended prematurely or decoding was interrupted.  // I didn't interrupt it, maybe another bug?\r\n15 bytes read, rendering at quality=200.00%\r\n````\r\n\r\nEDIT: it seems I also cannot convert the 1px flif back into png:\r\n````\r\nFile ended prematurely or decoding was interrupted.\r\n````"},"comment":{"url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/comments/164117708","html_url":"https://github.com/FLIF-hub/FLIF/issues/205#issuecomment-164117708","issue_url":"https://api.github.com/repos/FLIF-hub/FLIF/issues/205","id":164117708,"user":{"login":"jonsneyers","id":15010068,"avatar_url":"https://avatars.githubusercontent.com/u/15010068?v=3","gravatar_id":"","url":"https://api.github.com/users/jonsneyers","html_url":"https://github.com/jonsneyers","followers_url":"https://api.github.com/users/jonsneyers/followers","following_url":"https://api.github.com/users/jonsneyers/following{/other_user}","gists_url":"https://api.github.com/users/jonsneyers/gists{/gist_id}","starred_url":"https://api.github.com/users/jonsneyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonsneyers/subscriptions","organizations_url":"https://api.github.com/users/jonsneyers/orgs","repos_url":"https://api.github.com/users/jonsneyers/repos","events_url":"https://api.github.com/users/jonsneyers/events{/privacy}","received_events_url":"https://api.github.com/users/jonsneyers/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T07:37:18Z","updated_at":"2015-12-12T07:37:18Z","body":"Looks like an off-by-one error in the pixel counting, which makes it think it has decoded 2 pixels, which is more than the 1 pixel it should decode at quality target 100%, so it enters the code path which is normally only entered when decoding at a lower quality. Debugging..."}}