{"action":"created","issue":{"url":"https://api.github.com/repos/aheckmann/gm/issues/401","labels_url":"https://api.github.com/repos/aheckmann/gm/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/aheckmann/gm/issues/401/comments","events_url":"https://api.github.com/repos/aheckmann/gm/issues/401/events","html_url":"https://github.com/aheckmann/gm/issues/401","id":85166324,"number":401,"title":"Question: Trim image then get size","user":{"login":"chainlink","id":1187682,"avatar_url":"https://avatars.githubusercontent.com/u/1187682?v=3","gravatar_id":"","url":"https://api.github.com/users/chainlink","html_url":"https://github.com/chainlink","followers_url":"https://api.github.com/users/chainlink/followers","following_url":"https://api.github.com/users/chainlink/following{/other_user}","gists_url":"https://api.github.com/users/chainlink/gists{/gist_id}","starred_url":"https://api.github.com/users/chainlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainlink/subscriptions","organizations_url":"https://api.github.com/users/chainlink/orgs","repos_url":"https://api.github.com/users/chainlink/repos","events_url":"https://api.github.com/users/chainlink/events{/privacy}","received_events_url":"https://api.github.com/users/chainlink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-04T16:13:57Z","updated_at":"2015-06-08T18:11:17Z","closed_at":null,"body":"```` coffeescript\r\ngm('http://s2.evcdn.com/images/medium/I0-001/015/055/581-1.jpeg_/aloke-81.jpeg')\r\n.fuzz(80, true)\r\n.trim()\r\n.size {bufferStream: true}, (err, result) ->\r\n  console.log result\r\n````\r\nI'm trying to pull a remote image, trim it, then get the size of the result, but this reports the size of the original image. What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/aheckmann/gm/issues/comments/110095067","html_url":"https://github.com/aheckmann/gm/issues/401#issuecomment-110095067","issue_url":"https://api.github.com/repos/aheckmann/gm/issues/401","id":110095067,"user":{"login":"chainlink","id":1187682,"avatar_url":"https://avatars.githubusercontent.com/u/1187682?v=3","gravatar_id":"","url":"https://api.github.com/users/chainlink","html_url":"https://github.com/chainlink","followers_url":"https://api.github.com/users/chainlink/followers","following_url":"https://api.github.com/users/chainlink/following{/other_user}","gists_url":"https://api.github.com/users/chainlink/gists{/gist_id}","starred_url":"https://api.github.com/users/chainlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainlink/subscriptions","organizations_url":"https://api.github.com/users/chainlink/orgs","repos_url":"https://api.github.com/users/chainlink/repos","events_url":"https://api.github.com/users/chainlink/events{/privacy}","received_events_url":"https://api.github.com/users/chainlink/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T18:11:17Z","updated_at":"2015-06-08T18:11:17Z","body":"Thanks! This worked (needed to process the stream with a new gm instance)\r\n```\r\ngm(imageUrl)\r\n.trim()\r\n.stream( (err, stream) =>\r\n    gm(stream)\r\n    .size( { bufferStream: true }, (err, result) =>\r\n        console.log(result)\r\n    )\r\n)\r\n```"}}