{"action":"created","issue":{"url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/19","repository_url":"https://api.github.com/repos/NickeManarin/ScreenToGif","labels_url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/19/comments","events_url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/19/events","html_url":"https://github.com/NickeManarin/ScreenToGif/issues/19","id":179385687,"number":19,"title":"Overwritten files don't decrease in size","user":{"login":"duarteframos","id":8735426,"avatar_url":"https://avatars.githubusercontent.com/u/8735426?v=3","gravatar_id":"","url":"https://api.github.com/users/duarteframos","html_url":"https://github.com/duarteframos","followers_url":"https://api.github.com/users/duarteframos/followers","following_url":"https://api.github.com/users/duarteframos/following{/other_user}","gists_url":"https://api.github.com/users/duarteframos/gists{/gist_id}","starred_url":"https://api.github.com/users/duarteframos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duarteframos/subscriptions","organizations_url":"https://api.github.com/users/duarteframos/orgs","repos_url":"https://api.github.com/users/duarteframos/repos","events_url":"https://api.github.com/users/duarteframos/events{/privacy}","received_events_url":"https://api.github.com/users/duarteframos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-27T02:53:35Z","updated_at":"2016-09-27T02:56:42Z","closed_at":"2016-09-27T02:56:41Z","body":"One thing I have noticed in the past and has continued happening for several versions now is that if a file is saved overwriting an existing GIF recorded in a previous session it's file size never really decreases even if the new recording is smaller than the original.\r\n\r\nSay I record a capture and save it has gif (henceforth called Capture_A.gif) with a file size of 2.5Mb, then close ScreenToGif . I then proceed to open a new session and make a second recording which is considerably shorter than the previous one.\r\n\r\nIf I save it as Capture_B.gif it has 1.3Mb, but if I turn on the _Overwrite_ option and save it over Capture_A.gif it will still save with 2.5Mb file regardless of the actual size.\r\n\r\nIf I go back to the file browser and erase Capture_A.gif and save it again it will correctly present it's 1.3Mb file size.\r\n\r\nIs this intended behavior or some sort of bug?"},"comment":{"url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/comments/249753906","html_url":"https://github.com/NickeManarin/ScreenToGif/issues/19#issuecomment-249753906","issue_url":"https://api.github.com/repos/NickeManarin/ScreenToGif/issues/19","id":249753906,"user":{"login":"NickeManarin","id":14798947,"avatar_url":"https://avatars.githubusercontent.com/u/14798947?v=3","gravatar_id":"","url":"https://api.github.com/users/NickeManarin","html_url":"https://github.com/NickeManarin","followers_url":"https://api.github.com/users/NickeManarin/followers","following_url":"https://api.github.com/users/NickeManarin/following{/other_user}","gists_url":"https://api.github.com/users/NickeManarin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickeManarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickeManarin/subscriptions","organizations_url":"https://api.github.com/users/NickeManarin/orgs","repos_url":"https://api.github.com/users/NickeManarin/repos","events_url":"https://api.github.com/users/NickeManarin/events{/privacy}","received_events_url":"https://api.github.com/users/NickeManarin/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T02:56:41Z","updated_at":"2016-09-27T02:56:41Z","body":"It was a silly bug and it's fixed.\r\n\r\nDuring the creation of the gif file, I was opening the file and overwriting instead of creating a new one.\r\n\r\nIt had to do with a wrong flag during a FileStream call. \r\n\r\n:)"}}
{"actor":{"display_login":"NickeManarin"}}