{"action":"created","issue":{"url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/287","repository_url":"https://api.github.com/repos/dlemstra/Magick.NET","labels_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/287/comments","events_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/287/events","html_url":"https://github.com/dlemstra/Magick.NET/issues/287","id":350918300,"node_id":"MDU6SXNzdWUzNTA5MTgzMDA=","number":287,"title":"Why resizing animated GIF ends up with larger file size?","user":{"login":"FanrayMedia","id":633119,"node_id":"MDQ6VXNlcjYzMzExOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/633119?v=4","gravatar_id":"","url":"https://api.github.com/users/FanrayMedia","html_url":"https://github.com/FanrayMedia","followers_url":"https://api.github.com/users/FanrayMedia/followers","following_url":"https://api.github.com/users/FanrayMedia/following{/other_user}","gists_url":"https://api.github.com/users/FanrayMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/FanrayMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FanrayMedia/subscriptions","organizations_url":"https://api.github.com/users/FanrayMedia/orgs","repos_url":"https://api.github.com/users/FanrayMedia/repos","events_url":"https://api.github.com/users/FanrayMedia/events{/privacy}","received_events_url":"https://api.github.com/users/FanrayMedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-15T18:36:48Z","updated_at":"2018-08-27T01:01:42Z","closed_at":null,"author_association":"NONE","body":"I'm resizing down the dimension of an animated GIF, but the smaller dimension file ends up with larger file size.  I also tried resizing to same dimension, the file size is also larger.\r\n\r\nOriginal file: 500 x 225, 443KB\r\nResize to smaller dimension: 400 x 180, 488KB\r\nResize to same dimension: 500 x 225, 494KB\r\n\r\nHere is my code\r\n\r\n```c#\r\n    using (var imageColl = new MagickImageCollection(source))\r\n    {\r\n\t  widthOrig = imageColl[0].Width;\r\n\t  heightOrig = imageColl[0].Height;\r\n\t  imageColl.Coalesce();\r\n          imageColl.Optimize();\r\n          imageColl.OptimizeTransparency();\r\n\r\n\t  foreach (MagickImage image in imageColl)\r\n\t  {\r\n\t\tvar (width, height) = GetNewSize(widthOrig, heightOrig, 400);\r\n\r\n\t\timage.Resize(width, height);\r\n\t  }\r\n\r\n\t  // saving file omitted\r\n    }\r\n```\r\nCould someone point out what I'm missing to get smaller file size after resizing?  Thank you."},"comment":{"url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/comments/416086940","html_url":"https://github.com/dlemstra/Magick.NET/issues/287#issuecomment-416086940","issue_url":"https://api.github.com/repos/dlemstra/Magick.NET/issues/287","id":416086940,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjA4Njk0MA==","user":{"login":"FanrayMedia","id":633119,"node_id":"MDQ6VXNlcjYzMzExOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/633119?v=4","gravatar_id":"","url":"https://api.github.com/users/FanrayMedia","html_url":"https://github.com/FanrayMedia","followers_url":"https://api.github.com/users/FanrayMedia/followers","following_url":"https://api.github.com/users/FanrayMedia/following{/other_user}","gists_url":"https://api.github.com/users/FanrayMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/FanrayMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FanrayMedia/subscriptions","organizations_url":"https://api.github.com/users/FanrayMedia/orgs","repos_url":"https://api.github.com/users/FanrayMedia/repos","events_url":"https://api.github.com/users/FanrayMedia/events{/privacy}","received_events_url":"https://api.github.com/users/FanrayMedia/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T01:01:42Z","updated_at":"2018-08-27T01:01:42Z","author_association":"NONE","body":"This is the gif I used to test.\r\n\r\n![leo](https://user-images.githubusercontent.com/633119/44635340-33bce100-a959-11e8-98cf-d7022b1d495c.gif)\r\n"}}
{"actor":{"display_login":"FanrayMedia"}}