Q: EXIF information included in the Base64 encode of camera pictures

1,481 views
Skip to first unread message

Thomas

unread,
Feb 18, 2011, 5:57:17 PM2/18/11
to phonegap
If I use Phonegap to take a picture, and tell it to output the image
in a base64 encoded string, will it keep the EXIF information of the
image in the string?

I'm wondering this because I've noticed some base64 encoding methods
will maintain the EXIF information on images when encoding/decoding
them, and I would like to use the EXIF to determine the orientation of
an image taken with an iPhone. It seems the orientation property in
the picture take with an iPhone is the only consistent way to
determine what orientation the picture was taken in.

Jesse

unread,
Feb 18, 2011, 7:03:36 PM2/18/11
to phon...@googlegroups.com, phonegap
On iOS the info is encoded in base64. Not sure about other devices.

Sent from my iPhone

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Justin Tyberg

unread,
Feb 18, 2011, 7:59:19 PM2/18/11
to phonegap
Device dependent, as Jesse alluded. EXIF is stored with the image on
more recent BlackBerry devices (Torch, Storm, etc.).

On Feb 18, 7:03 pm, Jesse <jesse.macfad...@nitobi.com> wrote:
> On iOS the info is encoded in base64. Not sure about other devices.
>
> Sent from my iPhone
>

Kerri Shotts

unread,
Aug 20, 2012, 7:47:06 PM8/20/12
to phon...@googlegroups.com
I wouldn't suggest trying to parse the returned data for the EXIF information -- I'd suggest using a native API to read the EXIF natively. 

That said, I would think that the encoded data /should/ contain the EXIF information, unless the PG code is actively stripping it out in order to reduce memory consumption.

______________________________
Kerri Shotts
photoKandy Studios LLC

📱 Phone: +1 (312) 380-1035
🌐 Web: http://photokandy.com 

Twitter: @photokandy


On Aug 20, 2012, at 12:07, Phuong Nguyen <phuon...@gmail.com> wrote:

Phonegap doesn't include EXIF data on photo using either FileURI nor Base64 encoding. Not sure if it's iOS limit or phonegap issue.
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
 
 
Reply all
Reply to author
Forward
0 new messages