{"action":"created","issue":{"url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/348","repository_url":"https://api.github.com/repos/marcshilling/react-native-image-picker","labels_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/348/comments","events_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/348/events","html_url":"https://github.com/marcshilling/react-native-image-picker/issues/348","id":180991151,"number":348,"title":"Animated GIF become JPEG","user":{"login":"RatFou","id":11330245,"avatar_url":"https://avatars.githubusercontent.com/u/11330245?v=3","gravatar_id":"","url":"https://api.github.com/users/RatFou","html_url":"https://github.com/RatFou","followers_url":"https://api.github.com/users/RatFou/followers","following_url":"https://api.github.com/users/RatFou/following{/other_user}","gists_url":"https://api.github.com/users/RatFou/gists{/gist_id}","starred_url":"https://api.github.com/users/RatFou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RatFou/subscriptions","organizations_url":"https://api.github.com/users/RatFou/orgs","repos_url":"https://api.github.com/users/RatFou/repos","events_url":"https://api.github.com/users/RatFou/events{/privacy}","received_events_url":"https://api.github.com/users/RatFou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-04T20:05:47Z","updated_at":"2016-10-13T14:38:30Z","closed_at":null,"body":"Hi,\r\n\r\nWhen I want to use an animated GIF with the picker, the image I receive is a JPEG.\r\nDo you know how to tell the picker this image is a GIF and aplly to it a GIF data64?\r\n\r\nI'm on Android, my piece of code:\r\n```\r\nselectPhotoTapped() {\r\n\t\tconst options = {\r\n\t\t\tquality: 1.0,\r\n\t\t\tmaxWidth: 800,\r\n\t\t\tmaxHeight: 800,\r\n\t\t\ttitle: 'Select a picture',\r\n\t\t\tcancelButtonTitle: 'Cancel',\r\n\t\t\ttitle: 'Select a picture',\r\n\t\t\tcancelButtonTitle: 'Cancel',\r\n\t\t\ttakePhotoButtonTitle: 'Take picture',\r\n\t\t\tchooseFromLibraryButtonTitle: 'Phone'\r\n\t\t\t//noData: false, // we use response.data to display gif\r\n\t\t\t//allowsEditing: false // make sure we don't edit the gif\r\n\t\t};\r\n\t\tImagePicker.showImagePicker(options, (response) => {\r\n\t\t\tif (response.didCancel) { }\r\n\t\t\telse if (response.error) { alert('ImagePicker Error: ', response.error); }\r\n\t\t\telse if (response.customButton) { alert('User tapped custom button: ', response.customButton); }\r\n\t\t\telse {\r\n\t\t\t\tvar source;\r\n\t\t\t\tsource = {uri: 'data:image/jpeg;base64,' + response.data, isStatic: true};\r\n\t\t\t\t//Or:\r\n\t\t\t\t//if (Platform.OS === 'android') { source = {uri: response.uri, isStatic: true}; }\r\n\t\t\t\t//else { source = {uri: response.uri.replace('file://', ''), isStatic: true}; }\r\n\t\t\t\t//this.setState({ avatarSource: source });\r\n\t\t\t\tthis.setState({ photo: source });\r\n\t\t\t\tthis.setState({ photoUpload: source.uri });\r\n\t\t\t}\r\n\t\t});\r\n}\r\n```\r\n\r\nThank you for your help!"},"comment":{"url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/comments/253532592","html_url":"https://github.com/marcshilling/react-native-image-picker/issues/348#issuecomment-253532592","issue_url":"https://api.github.com/repos/marcshilling/react-native-image-picker/issues/348","id":253532592,"user":{"login":"RatFou","id":11330245,"avatar_url":"https://avatars.githubusercontent.com/u/11330245?v=3","gravatar_id":"","url":"https://api.github.com/users/RatFou","html_url":"https://github.com/RatFou","followers_url":"https://api.github.com/users/RatFou/followers","following_url":"https://api.github.com/users/RatFou/following{/other_user}","gists_url":"https://api.github.com/users/RatFou/gists{/gist_id}","starred_url":"https://api.github.com/users/RatFou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RatFou/subscriptions","organizations_url":"https://api.github.com/users/RatFou/orgs","repos_url":"https://api.github.com/users/RatFou/repos","events_url":"https://api.github.com/users/RatFou/events{/privacy}","received_events_url":"https://api.github.com/users/RatFou/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T14:38:30Z","updated_at":"2016-10-13T14:38:30Z","body":"Imagick supports animated GIF: [http://stackoverflow.com/questions/13997518/php-imagick-create-gif-animation](stackoverflow)\r\n\r\nThanks for the link to display GIF in Android, I saw it before, but I can't upload animated GIF so I will see that at the right moment ;)\r\n\r\n"}}
{"actor":{"display_login":"RatFou"}}