GPS info on photo EXIF

Hi,

I’m using the device camera to save photos, like this:

[lua]filePath = { baseDir = system.TemporaryDirectory, filename = “camerashot.jpg”, type = “image” }
media.show( media.Camera, sessionComplete, filePath)[/lua]

Despite having the device GPS turned on, I can’t find any information about de latitude/longitude on the file EXIF info. If the photo is taken with the iphone native photo app this info is there.

Is this a limitation of Corona SDK or I’m doing something wrong.

Please advice.

Thanks [import]uid: 189638 topic_id: 33954 reply_id: 333954[/import]

You would have to read the EXIF information from the file yourself. Have a look at the following forum thread. This person has done it himself.
https://developer.coronalabs.com/forum/2012/02/12/saving-camera-picture#comment-120462
[import]uid: 32256 topic_id: 33954 reply_id: 134993[/import]

Oh, I’m sorry. I read your forum post a little too fast and misunderstood.

The problem is that location data is not getting written into the photo file’s EXIF data, right? Is this only happening on iOS? I’ll ask our iOS experts over here about this. Thanks for bringing this up.
[import]uid: 32256 topic_id: 33954 reply_id: 134999[/import]

The only EXIF data I’ve successfully read from images imported from Camera/photo roll is the photo rotation. Gps and other data seems lost when the photo is imported in the app.
FIY, to read EXIF I’ve slightly modified a library called EXIFModule.lua (found it here http://chdk.setepontos.com/index.php?topic=8084.0)
[import]uid: 9158 topic_id: 33954 reply_id: 135063[/import]

@Joshua Quick

Yes the problem is to write location info into the photo EXIF data. I’ve only tested with iOS. As I said before, if the photo is taken with the iphone native photo app this info is there, so maybe this is a problem with corona. Thanks.

@PXL artificer
Thanks, that can be useful.

[import]uid: 189638 topic_id: 33954 reply_id: 135088[/import]

By default on iOS pictures taken with apps other than the Camera don’t include location data (apps that do have additional code in them to add it).

I’ll add this as a feature request. [import]uid: 199237 topic_id: 33954 reply_id: 135197[/import]

@Perry

Thanks for the clarification.
Do you have a tracking number so I can follow the request?

Thanks [import]uid: 189638 topic_id: 33954 reply_id: 135229[/import]

You would have to read the EXIF information from the file yourself. Have a look at the following forum thread. This person has done it himself.
https://developer.coronalabs.com/forum/2012/02/12/saving-camera-picture#comment-120462
[import]uid: 32256 topic_id: 33954 reply_id: 134993[/import]

Oh, I’m sorry. I read your forum post a little too fast and misunderstood.

The problem is that location data is not getting written into the photo file’s EXIF data, right? Is this only happening on iOS? I’ll ask our iOS experts over here about this. Thanks for bringing this up.
[import]uid: 32256 topic_id: 33954 reply_id: 134999[/import]

The only EXIF data I’ve successfully read from images imported from Camera/photo roll is the photo rotation. Gps and other data seems lost when the photo is imported in the app.
FIY, to read EXIF I’ve slightly modified a library called EXIFModule.lua (found it here http://chdk.setepontos.com/index.php?topic=8084.0)
[import]uid: 9158 topic_id: 33954 reply_id: 135063[/import]

@Joshua Quick

Yes the problem is to write location info into the photo EXIF data. I’ve only tested with iOS. As I said before, if the photo is taken with the iphone native photo app this info is there, so maybe this is a problem with corona. Thanks.

@PXL artificer
Thanks, that can be useful.

[import]uid: 189638 topic_id: 33954 reply_id: 135088[/import]

By default on iOS pictures taken with apps other than the Camera don’t include location data (apps that do have additional code in them to add it).

I’ll add this as a feature request. [import]uid: 199237 topic_id: 33954 reply_id: 135197[/import]

@Perry

Thanks for the clarification.
Do you have a tracking number so I can follow the request?

Thanks [import]uid: 189638 topic_id: 33954 reply_id: 135229[/import]

@fac

Oops, I dropped the ball on this … the issue # is 19585. It’s currently a medium priority. [import]uid: 199237 topic_id: 33954 reply_id: 139188[/import]

Thanks Perry [import]uid: 189638 topic_id: 33954 reply_id: 139309[/import]

@fac

Oops, I dropped the ball on this … the issue # is 19585. It’s currently a medium priority. [import]uid: 199237 topic_id: 33954 reply_id: 139188[/import]

Thanks Perry [import]uid: 189638 topic_id: 33954 reply_id: 139309[/import]