[
https://issues.apache.org/jira/browse/CB-12432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857279#comment-15857279
]
Phuong Phan commented on CB-12432:
----------------------------------
[~kerrishotts] thanks for your response. I attached GIF images in Email or
iMessage, it works. I'm using iOS 10, I tested on simulator, iPad3, iPhone 6.
GIF file http://giphy.com/gifs/christmas-xmas-santa-claus-3o8dpbZRKpIjdNgQHm
```
var options = {
sourceType: Camera.PictureSourceType.PHOTOLIBRARY
};
if (type === "DATA_URL") {
options.destinationType = Camera.DestinationType.DATA_URL;
}
else {
options.destinationType = Camera.DestinationType.FILE_URL;
}
$log.debug('Use existing Photo');
var deferred = $q.defer();
var cbSuccess = function(data) {
//data always is static image on iOS
deferred.resolve(data);
};
var cbError = function(error) {
$log.debug(error);
deferred.reject(error);
};
navigator.camera.getPicture(cbSuccess, cbError, options);
return deferred.promise;
```
> Choose animated image (GIF) not work on IOS
> -------------------------------------------
>
> Key: CB-12432
> URL: https://issues.apache.org/jira/browse/CB-12432
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin Camera
> Environment: IOS
> Reporter: Phuong Phan
>
> I use https://github.com/apache/cordova-plugin-camera to select GIF image
> from camera roll. It works on Android but on iOS GIF image is converted to
> static image automatically.
> How can make it works on IOS?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]