{"action":"opened","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/525","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/525/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/525/events","html_url":"https://github.com/lovell/sharp/issues/525","id":167095669,"number":525,"title":"Problem to convert gif transparent to png","user":{"login":"anderolimar","id":8864029,"avatar_url":"https://avatars.githubusercontent.com/u/8864029?v=3","gravatar_id":"","url":"https://api.github.com/users/anderolimar","html_url":"https://github.com/anderolimar","followers_url":"https://api.github.com/users/anderolimar/followers","following_url":"https://api.github.com/users/anderolimar/following{/other_user}","gists_url":"https://api.github.com/users/anderolimar/gists{/gist_id}","starred_url":"https://api.github.com/users/anderolimar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderolimar/subscriptions","organizations_url":"https://api.github.com/users/anderolimar/orgs","repos_url":"https://api.github.com/users/anderolimar/repos","events_url":"https://api.github.com/users/anderolimar/events{/privacy}","received_events_url":"https://api.github.com/users/anderolimar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T17:39:19Z","updated_at":"2016-07-22T17:39:19Z","closed_at":null,"body":"Hi !\r\nI had a problem when I tried to convert gif with transparent background to png.\r\nThe png background generated is white instead transparent.\r\n\r\n```\r\nsharp('input.gif')\r\n\t   .resize(240, 240)\r\n\t   .background({ r: 255, g: 255, b: 255, a: 0 })\r\n\t   .crop(sharp.gravity.center)\r\n\t   .toFormat(sharp.format.png)\r\n\t   .toFile('output.png', function(err) {\r\n\t  }); \r\n```\r\n\r\nThis behavior didn't happen in version 0.13.1\r\n\r\nBellow is the image url that I did test.\r\n\r\n[http://25.media.tumblr.com/c99a579db3ae0fc164bf4cca148885d3/tumblr_mjgv8kEuMg1s87n79o1_400.gif](url)\r\n\r\n![Image tested](http://25.media.tumblr.com/c99a579db3ae0fc164bf4cca148885d3/tumblr_mjgv8kEuMg1s87n79o1_400.gif)\r\n\r\nImage output.\r\n\r\n![Image output](https://raw.githubusercontent.com/anderolimar/travis.test/dev/output.png)\r\n\r\nThanks."}}
{"actor":{"display_login":"anderolimar"}}