{"action":"created","issue":{"url":"https://api.github.com/repos/Foliotek/Croppie/issues/506","repository_url":"https://api.github.com/repos/Foliotek/Croppie","labels_url":"https://api.github.com/repos/Foliotek/Croppie/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/Foliotek/Croppie/issues/506/comments","events_url":"https://api.github.com/repos/Foliotek/Croppie/issues/506/events","html_url":"https://github.com/Foliotek/Croppie/issues/506","id":310339358,"number":506,"title":"unable to set orientation 'on the fly' without resetting croppie image position and scale","user":{"login":"rob-lindman","id":2185150,"avatar_url":"https://avatars3.githubusercontent.com/u/2185150?v=4","gravatar_id":"","url":"https://api.github.com/users/rob-lindman","html_url":"https://github.com/rob-lindman","followers_url":"https://api.github.com/users/rob-lindman/followers","following_url":"https://api.github.com/users/rob-lindman/following{/other_user}","gists_url":"https://api.github.com/users/rob-lindman/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-lindman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-lindman/subscriptions","organizations_url":"https://api.github.com/users/rob-lindman/orgs","repos_url":"https://api.github.com/users/rob-lindman/repos","events_url":"https://api.github.com/users/rob-lindman/events{/privacy}","received_events_url":"https://api.github.com/users/rob-lindman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-01T17:21:06Z","updated_at":"2018-04-03T10:48:11Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\n1. user uploads image, which is loaded into croppie.\r\n2. user positions and scales image with croppie.\r\n3. user clicks 'flip' button and current croppie image is flipped, preserving scale and position, while horizontally (or perhaps also vertically) flipping the image\r\n\r\n## Actual Behavior\r\n1 and 2 above are fine and expected to work (and do quite well).\r\n3 seems to require a url parameter passed to the bind method. this resets the picture to the original image, wiping out any 'work' the user did. While the orientation is set, the user now has to redo their crop and position.\r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1. Use the link below to open a js fiddle.\r\n  2. move the cat, scale the cat, love the cat.\r\n  3. click 'FLIP'. while the orientation is set, the scale and position information are lost\r\n  \r\n## Example Link\r\n* Link: https://jsfiddle.net/afb76b7f/54/ \r\n\r\nThis fiddle was located in the github issues for this croppie repo. \r\nThis fiddle is a demo of altering the orientation of the image. it also demonstrates the problem. Scaling information is lost as is the position. \r\n\r\nFrom other examples I know it is possible to rotate the croppie image without losing the 'work'. I tried the bind method with an orientation parameter of 2 with no URL but this seems to cause a javascript error because the url is null. Perhaps there is a way to set the URL to the croppie itself, but I am not sure. Obviously the functionality is there but getting at it has this problem. \r\n\r\n Recommend being able to explicitly set orientation without reloading the image\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Foliotek/Croppie/issues/comments/378208221","html_url":"https://github.com/Foliotek/Croppie/issues/506#issuecomment-378208221","issue_url":"https://api.github.com/repos/Foliotek/Croppie/issues/506","id":378208221,"user":{"login":"rob-lindman","id":2185150,"avatar_url":"https://avatars3.githubusercontent.com/u/2185150?v=4","gravatar_id":"","url":"https://api.github.com/users/rob-lindman","html_url":"https://github.com/rob-lindman","followers_url":"https://api.github.com/users/rob-lindman/followers","following_url":"https://api.github.com/users/rob-lindman/following{/other_user}","gists_url":"https://api.github.com/users/rob-lindman/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-lindman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-lindman/subscriptions","organizations_url":"https://api.github.com/users/rob-lindman/orgs","repos_url":"https://api.github.com/users/rob-lindman/repos","events_url":"https://api.github.com/users/rob-lindman/events{/privacy}","received_events_url":"https://api.github.com/users/rob-lindman/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T10:48:11Z","updated_at":"2018-04-03T10:48:11Z","author_association":"NONE","body":"![ex](https://user-images.githubusercontent.com/2185150/38245050-3d175056-3702-11e8-8fae-6cfbb6083433.png)\r\n\r\nThis picture should better explain my objective.\r\n\r\nUsing croppie and a combination of orientation and rotation, I should be able to produce these 8 pictures, with the upper left corner image as a base. So far I have not been able to do so. It seems to defy this. I am looking at the above code and doing a refactor in order to try to achieve this result, but it seems like this functionality is quasi-built in, but wrong. Perhaps I am doing something wrong here, but I am not getting the results I expect. Perhaps croppie just needs more orientation options, or rotation needs to be part of get, I don't know. \r\n"}}
{"actor":{"display_login":"rob-lindman"}}