{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/445","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/445/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/445/events","html_url":"https://github.com/fengyuanchen/cropper/issues/445","id":105296785,"number":445,"title":"Rotate 90deg enlarges/stretches the image (reproduced on demo)","user":{"login":"jodiedunlop","id":4055554,"avatar_url":"https://avatars.githubusercontent.com/u/4055554?v=3","gravatar_id":"","url":"https://api.github.com/users/jodiedunlop","html_url":"https://github.com/jodiedunlop","followers_url":"https://api.github.com/users/jodiedunlop/followers","following_url":"https://api.github.com/users/jodiedunlop/following{/other_user}","gists_url":"https://api.github.com/users/jodiedunlop/gists{/gist_id}","starred_url":"https://api.github.com/users/jodiedunlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodiedunlop/subscriptions","organizations_url":"https://api.github.com/users/jodiedunlop/orgs","repos_url":"https://api.github.com/users/jodiedunlop/repos","events_url":"https://api.github.com/users/jodiedunlop/events{/privacy}","received_events_url":"https://api.github.com/users/jodiedunlop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-08T04:11:14Z","updated_at":"2015-09-25T12:30:35Z","closed_at":"2015-09-25T12:30:35Z","body":"When an image is rotated, it appears to be stretched to fit the canvas.\r\nAn example can be seen on the current demo:\r\n\r\nhttp://fengyuanchen.github.io/cropper/\r\n\r\n1. If you rotate the image right twice (90deg) you will notice it becomes visibly enlarged.  \r\nIt is stretched to fit the current crop box (you cannot zoom out in this position).\r\n\r\n2. Even if you rotate back to the original position the image is still stretched.  However, now you can zoom back out.\r\n\r\nThe image should not be stretched to fit when rotating.\r\n\r\nTested in latest chrome, ie11 and edge"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/comments/143204822","html_url":"https://github.com/fengyuanchen/cropper/issues/445#issuecomment-143204822","issue_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/445","id":143204822,"user":{"login":"fengyuanchen","id":3456749,"avatar_url":"https://avatars.githubusercontent.com/u/3456749?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyuanchen","html_url":"https://github.com/fengyuanchen","followers_url":"https://api.github.com/users/fengyuanchen/followers","following_url":"https://api.github.com/users/fengyuanchen/following{/other_user}","gists_url":"https://api.github.com/users/fengyuanchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyuanchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyuanchen/subscriptions","organizations_url":"https://api.github.com/users/fengyuanchen/orgs","repos_url":"https://api.github.com/users/fengyuanchen/repos","events_url":"https://api.github.com/users/fengyuanchen/events{/privacy}","received_events_url":"https://api.github.com/users/fengyuanchen/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T12:30:35Z","updated_at":"2015-09-25T12:30:35Z","body":"@jodiedunlop In strict mode, when you rotate the canvas, its size will be enlarged (in order to fit the crop box as the crop box will not changed), after rotated 4 times (90 deg per time), you find it seems to go back the initial state, but it is 360 deg now. How can it be the same as the initial state (0 deg)."}}