{"action":"created","issue":{"url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/10","repository_url":"https://api.github.com/repos/dgladkov/react-native-image-rotate","labels_url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/10/comments","events_url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/10/events","html_url":"https://github.com/dgladkov/react-native-image-rotate/issues/10","id":303169021,"number":10,"title":"Getting Error: Requested column: 0, # of columns: 0","user":{"login":"embpdaniel","id":5573046,"avatar_url":"https://avatars1.githubusercontent.com/u/5573046?v=4","gravatar_id":"","url":"https://api.github.com/users/embpdaniel","html_url":"https://github.com/embpdaniel","followers_url":"https://api.github.com/users/embpdaniel/followers","following_url":"https://api.github.com/users/embpdaniel/following{/other_user}","gists_url":"https://api.github.com/users/embpdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/embpdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embpdaniel/subscriptions","organizations_url":"https://api.github.com/users/embpdaniel/orgs","repos_url":"https://api.github.com/users/embpdaniel/repos","events_url":"https://api.github.com/users/embpdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/embpdaniel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-07T16:32:42Z","updated_at":"2018-03-08T12:08:36Z","closed_at":null,"author_association":"NONE","body":"Hi, I am attempting to rotate an image returned by [react-native-image-picker](https://github.com/react-community/react-native-image-picker), but I am having trouble getting it to work. The response data of the picker gives me something like this:\r\n\r\n```\r\nfileName: \"image-95d7bc92-8982-4e5c-80c3-a467c089b910.jpg\"\r\nfileSize: 1903989\r\nheight:2340\r\nisVertical: false\r\noriginalRotation: 90\r\npath: \"/storage/emulated/0/Pictures/image-95d7bc92-8982-4e5c-80c3-a467c089b910.jpg\"\r\ntimestamp: \"2018-03-07T16:23:31Z\"\r\ntype: \"image/jpeg\"\r\nuri: \"content://com.myapp.provider/app_images/Pictures/image-95d7bc92-8982-4e5c-80c3-a467c089b910.jpg\"\r\nwidth: 4160\r\n```\r\n\r\nBased on the example I saw for rotating an image, it looks like the uri I should provide should be\r\n\r\n`content://com.myapp.provider/app_images/Pictures/image-95d7bc92-8982-4e5c-80c3-a467c089b910.jpg`\r\n\r\nI pass this uri along with the angle (90), and I get this error when doing so:\r\n`Requested column: 0, # of columns: 0`\r\n\r\nI figured maybe I was passing the wrong path, so I tried using the path value (`/storage/emulated/0/Pictures/image-95d7bc92-8982-4e5c-80c3-a467c089b910.jpg`) but passing that tells me this path is invalid since it has no protocol. So I think the correct uri is in fact the one I originally passed. Additionally, at the same time as I try to rotate, I display the image to the user, using the uri value, and this displays just fine. So I know the image does exist and it is valid.\r\n\r\nAny idea why I would get this error? I am targeting Android, and my test device uses Android 6.0. \r\nThank you in advance!"},"comment":{"url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/comments/371469159","html_url":"https://github.com/dgladkov/react-native-image-rotate/issues/10#issuecomment-371469159","issue_url":"https://api.github.com/repos/dgladkov/react-native-image-rotate/issues/10","id":371469159,"user":{"login":"filipef101","id":18123246,"avatar_url":"https://avatars2.githubusercontent.com/u/18123246?v=4","gravatar_id":"","url":"https://api.github.com/users/filipef101","html_url":"https://github.com/filipef101","followers_url":"https://api.github.com/users/filipef101/followers","following_url":"https://api.github.com/users/filipef101/following{/other_user}","gists_url":"https://api.github.com/users/filipef101/gists{/gist_id}","starred_url":"https://api.github.com/users/filipef101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipef101/subscriptions","organizations_url":"https://api.github.com/users/filipef101/orgs","repos_url":"https://api.github.com/users/filipef101/repos","events_url":"https://api.github.com/users/filipef101/events{/privacy}","received_events_url":"https://api.github.com/users/filipef101/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T12:08:36Z","updated_at":"2018-03-08T12:08:36Z","author_association":"NONE","body":"add file:// to the path\r\n"}}
{"actor":{"display_login":"filipef101"}}