[
https://issues.apache.org/jira/browse/CB-6908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028774#comment-14028774
]
Ian Clelland commented on CB-6908:
----------------------------------
What do you mean by "a vertical image"?
Are you requesting certain image size parameters from the Camera API? I don't
think that it is documented clearly (or maybe at all), but certain combinations
of parameters will force the plugin to manipulate the picture after it has been
taken. If we do that, then the picture is *always* stored in the temporary
directory, with the filename "modified.jpg". This means that the next picture
you take with those parameters will overwrite it, and the first one will be
lost.
To properly deal with pictures in those cases, you need to copy or move the
"modified.jpg" picture to somewhere permanent before taking another picture.
> camera modified.jpg with resolveLocalFileSystemURL
> --------------------------------------------------
>
> Key: CB-6908
> URL: https://issues.apache.org/jira/browse/CB-6908
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera, Plugin File
> Affects Versions: 3.5.0
> Environment: Android 2.3.6
> Samsung s1 GT-I9003
> Reporter: Nestor PS
> Priority: Blocker
> Labels: camera, file
>
> I'm having problems trying to store url photos into a database from gallery.
> With resolveLocalFileSystemURL and fileEntry.toURL() and getting the full
> path of the image with no problems. But when I get a vertical image I'm
> getting something like:
> cache/modified.jpg with resolveLocalFileSystemURL and
> cache/modified.jpg?xxxxxxxx without resolveLocalFileSystemURL
> resolveLocalFileSystemURL is not resolving the path of the modified jpg.
> Without resolveLocalFileSystemURL the path seems to be right but is not
> persistent. If I launch the app days after all the images pointing to
> cache/modified.jpg?xxxxxxxx are the same.
--
This message was sent by Atlassian JIRA
(v6.2#6252)