{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/417","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/417/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/417/events","html_url":"https://github.com/lovell/sharp/issues/417","id":150373773,"number":417,"title":"resize + rotate occasionally cause slightly wrong image position","user":{"login":"jardakotesovec","id":1590681,"avatar_url":"https://avatars.githubusercontent.com/u/1590681?v=3","gravatar_id":"","url":"https://api.github.com/users/jardakotesovec","html_url":"https://github.com/jardakotesovec","followers_url":"https://api.github.com/users/jardakotesovec/followers","following_url":"https://api.github.com/users/jardakotesovec/following{/other_user}","gists_url":"https://api.github.com/users/jardakotesovec/gists{/gist_id}","starred_url":"https://api.github.com/users/jardakotesovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jardakotesovec/subscriptions","organizations_url":"https://api.github.com/users/jardakotesovec/orgs","repos_url":"https://api.github.com/users/jardakotesovec/repos","events_url":"https://api.github.com/users/jardakotesovec/events{/privacy}","received_events_url":"https://api.github.com/users/jardakotesovec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-22T13:45:09Z","updated_at":"2016-04-22T15:49:09Z","closed_at":null,"body":"Hello again :-). \r\n\r\nI assume that these two output image should be identical, just second one rotated, right?\r\n```\r\nvar sharp = require('sharp');\r\n\r\nvar width = 600;\r\nvar height = 500;\r\nsharp('./testImage.png')\r\n    .resize(width,height)\r\n    .png().toFile('no_rotation.png')\r\n\r\nsharp('./testImage.png')\r\n    .resize(width,height)\r\n    .rotate(180)\r\n    .png().toFile('rotation.png')\r\n```\r\nBut I am getting image slightly shifted - its easy to test it in Preview (OS X) where is easy to rotate the image and jump between two of them to see the difference. Its about 2px difference, which is big deal in my case. \r\n\r\nAny idea why this is happening?\r\nI am attaching testImage.png so there is more likely you will successfully reproduce.\r\n![testimage](https://cloud.githubusercontent.com/assets/1590681/14743280/15c8cc5a-08a1-11e6-8273-a2d40bce0842.png)\r\n"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/213484355","html_url":"https://github.com/lovell/sharp/issues/417#issuecomment-213484355","issue_url":"https://api.github.com/repos/lovell/sharp/issues/417","id":213484355,"user":{"login":"jardakotesovec","id":1590681,"avatar_url":"https://avatars.githubusercontent.com/u/1590681?v=3","gravatar_id":"","url":"https://api.github.com/users/jardakotesovec","html_url":"https://github.com/jardakotesovec","followers_url":"https://api.github.com/users/jardakotesovec/followers","following_url":"https://api.github.com/users/jardakotesovec/following{/other_user}","gists_url":"https://api.github.com/users/jardakotesovec/gists{/gist_id}","starred_url":"https://api.github.com/users/jardakotesovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jardakotesovec/subscriptions","organizations_url":"https://api.github.com/users/jardakotesovec/orgs","repos_url":"https://api.github.com/users/jardakotesovec/repos","events_url":"https://api.github.com/users/jardakotesovec/events{/privacy}","received_events_url":"https://api.github.com/users/jardakotesovec/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:49:09Z","updated_at":"2016-04-22T15:49:09Z","body":"My original usage is   .extract().resize().rotate(180) so even if its explicitly said where it should extract, it in some cases provides slightly shifted result."}}