{"action":"created","issue":{"url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/53","labels_url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/53/comments","events_url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/53/events","html_url":"https://github.com/aptoma/drpublish-imbo-app/issues/53","id":112234175,"number":53,"title":"Crop + rotation bug","user":{"login":"kbrabrand","id":2884292,"avatar_url":"https://avatars.githubusercontent.com/u/2884292?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrabrand","html_url":"https://github.com/kbrabrand","followers_url":"https://api.github.com/users/kbrabrand/followers","following_url":"https://api.github.com/users/kbrabrand/following{/other_user}","gists_url":"https://api.github.com/users/kbrabrand/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrabrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrabrand/subscriptions","organizations_url":"https://api.github.com/users/kbrabrand/orgs","repos_url":"https://api.github.com/users/kbrabrand/repos","events_url":"https://api.github.com/users/kbrabrand/events{/privacy}","received_events_url":"https://api.github.com/users/kbrabrand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/milestones/1","html_url":"https://github.com/aptoma/drpublish-imbo-app/milestones/Vinland","labels_url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/milestones/1/labels","id":1357089,"number":1,"title":"Vinland","description":"","creator":{"login":"kbrabrand","id":2884292,"avatar_url":"https://avatars.githubusercontent.com/u/2884292?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrabrand","html_url":"https://github.com/kbrabrand","followers_url":"https://api.github.com/users/kbrabrand/followers","following_url":"https://api.github.com/users/kbrabrand/following{/other_user}","gists_url":"https://api.github.com/users/kbrabrand/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrabrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrabrand/subscriptions","organizations_url":"https://api.github.com/users/kbrabrand/orgs","repos_url":"https://api.github.com/users/kbrabrand/repos","events_url":"https://api.github.com/users/kbrabrand/events{/privacy}","received_events_url":"https://api.github.com/users/kbrabrand/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":7,"state":"open","created_at":"2015-10-15T10:54:49Z","updated_at":"2015-10-23T15:06:25Z","due_on":"2015-10-15T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-10-19T21:12:35Z","updated_at":"2015-11-09T14:26:48Z","closed_at":null,"body":"There is a bug when a rotated image is cropped.It seems that when rotating the image and then choosing a crop that covers a large part of the width of the image after cropping. The result after cropping is a blank 1x1 pixel image.\r\n\r\nAn example of an URL that gives this result: https://drp-imbo.vgc.no/users/vgnett/images/gkP8e17_Ymak.jpg?t[]=rotate:angle=90,bg=000000&t[]=crop:width=3659,height=1007,x=1205,y=1809&t[]=maxSize:width=552&publicKey=drp-test&accessToken=c407f5d17af8abb304a781ba1d9baa7bd6a90b04e00f0833c898e2271a4731e7\r\n\r\n**Steps to reproduce**\r\n1. Click to insert a landscape photo\r\n2. Rotate the image 90 degrees\r\n3. Select a crop area that goes across the full width of the image (as shown below)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2884292/10591508/c1ba8e9a-76b6-11e5-900c-5c5e48cf6f0b.png)"},"comment":{"url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/comments/155078107","html_url":"https://github.com/aptoma/drpublish-imbo-app/issues/53#issuecomment-155078107","issue_url":"https://api.github.com/repos/aptoma/drpublish-imbo-app/issues/53","id":155078107,"user":{"login":"kbrabrand","id":2884292,"avatar_url":"https://avatars.githubusercontent.com/u/2884292?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrabrand","html_url":"https://github.com/kbrabrand","followers_url":"https://api.github.com/users/kbrabrand/followers","following_url":"https://api.github.com/users/kbrabrand/following{/other_user}","gists_url":"https://api.github.com/users/kbrabrand/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrabrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrabrand/subscriptions","organizations_url":"https://api.github.com/users/kbrabrand/orgs","repos_url":"https://api.github.com/users/kbrabrand/repos","events_url":"https://api.github.com/users/kbrabrand/events{/privacy}","received_events_url":"https://api.github.com/users/kbrabrand/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T14:26:48Z","updated_at":"2015-11-09T14:26:48Z","body":"After the latest bugfix the crop params seem to be correct, but there is in fact a bug in Imbo when using crop and maxSize in combination. A separate ticket has been created."}}