{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/335","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/335/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/335/events","html_url":"https://github.com/lovell/sharp/pull/335","id":125681899,"number":335,"title":"Overlay from buffer and overlay scaling","user":{"login":"chrisriley","id":140195,"avatar_url":"https://avatars.githubusercontent.com/u/140195?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisriley","html_url":"https://github.com/chrisriley","followers_url":"https://api.github.com/users/chrisriley/followers","following_url":"https://api.github.com/users/chrisriley/following{/other_user}","gists_url":"https://api.github.com/users/chrisriley/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisriley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisriley/subscriptions","organizations_url":"https://api.github.com/users/chrisriley/orgs","repos_url":"https://api.github.com/users/chrisriley/repos","events_url":"https://api.github.com/users/chrisriley/events{/privacy}","received_events_url":"https://api.github.com/users/chrisriley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-08T19:57:33Z","updated_at":"2016-02-29T15:25:46Z","closed_at":"2016-02-29T15:25:46Z","pull_request":{"url":"https://api.github.com/repos/lovell/sharp/pulls/335","html_url":"https://github.com/lovell/sharp/pull/335","diff_url":"https://github.com/lovell/sharp/pull/335.diff","patch_url":"https://github.com/lovell/sharp/pull/335.patch"},"body":"Hi Lovell,\r\n\r\nWe had a use case for loading overlays from a buffer and also needed to be able to scale the overlay to a ratio of the main scaled image. These patches allow for overlays to be loaded from a node.js buffer in addition to a file and add `overlayGravity()`, `overlayRatio()`, and `interpolateOverlayWith()` methods. I wanted to put this out there in case anyone else might find it useful.\r\n\r\nRegards,\r\nChris"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/190256172","html_url":"https://github.com/lovell/sharp/pull/335#issuecomment-190256172","issue_url":"https://api.github.com/repos/lovell/sharp/issues/335","id":190256172,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T15:25:46Z","updated_at":"2016-02-29T15:25:46Z","body":"I'm going to close this PR now as the features missing from sharp have now been reworked as #239, with the exception of `pad` covered by #128. Thanks again @chrisriley for all your work on this!"}}