{"action":"created","issue":{"url":"https://api.github.com/repos/DAddYE/vips/issues/16","labels_url":"https://api.github.com/repos/DAddYE/vips/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/DAddYE/vips/issues/16/comments","events_url":"https://api.github.com/repos/DAddYE/vips/issues/16/events","html_url":"https://github.com/DAddYE/vips/issues/16","id":64336838,"number":16,"title":"Width of returned image is off by one","user":{"login":"foresmac","id":3628189,"avatar_url":"https://avatars.githubusercontent.com/u/3628189?v=3","gravatar_id":"","url":"https://api.github.com/users/foresmac","html_url":"https://github.com/foresmac","followers_url":"https://api.github.com/users/foresmac/followers","following_url":"https://api.github.com/users/foresmac/following{/other_user}","gists_url":"https://api.github.com/users/foresmac/gists{/gist_id}","starred_url":"https://api.github.com/users/foresmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foresmac/subscriptions","organizations_url":"https://api.github.com/users/foresmac/orgs","repos_url":"https://api.github.com/users/foresmac/repos","events_url":"https://api.github.com/users/foresmac/events{/privacy}","received_events_url":"https://api.github.com/users/foresmac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-25T18:10:35Z","updated_at":"2015-03-25T18:46:46Z","closed_at":null,"body":"We replaced http://github.com/disintegration/imaging with vips in an image proxy to speed up resize operations. They are faster, but in our test suite I keep getting errors where the returned image width is 1 pixel greater than the specified width. I suspect (but have not been able to verify) that the difference is due to our calculations for height. Since I always want proportional scaling, can I just include the width and let vips figure out the height? I can't seem to find the documentation I'm looking for to figure this out on my own."},"comment":{"url":"https://api.github.com/repos/DAddYE/vips/issues/comments/86168359","html_url":"https://github.com/DAddYE/vips/issues/16#issuecomment-86168359","issue_url":"https://api.github.com/repos/DAddYE/vips/issues/16","id":86168359,"user":{"login":"DAddYE","id":6537,"avatar_url":"https://avatars.githubusercontent.com/u/6537?v=3","gravatar_id":"","url":"https://api.github.com/users/DAddYE","html_url":"https://github.com/DAddYE","followers_url":"https://api.github.com/users/DAddYE/followers","following_url":"https://api.github.com/users/DAddYE/following{/other_user}","gists_url":"https://api.github.com/users/DAddYE/gists{/gist_id}","starred_url":"https://api.github.com/users/DAddYE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DAddYE/subscriptions","organizations_url":"https://api.github.com/users/DAddYE/orgs","repos_url":"https://api.github.com/users/DAddYE/repos","events_url":"https://api.github.com/users/DAddYE/events{/privacy}","received_events_url":"https://api.github.com/users/DAddYE/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T18:46:46Z","updated_at":"2015-03-25T18:46:46Z","body":"It should do the right thing.\r\n\r\nSpecifically we round with [math.Floor](http://golang.org/pkg/math/#Floor)  [here](https://github.com/DAddYE/vips/blob/master/vips.go#L138)"}}