Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Extracting Exif Data

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-21-2008, 07:56 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hallo Maxim,

Sorry, but I don't speak, read or write Italian. Dutch by preference, English, German and somewhat French is also OK. I tried to read your Italian article , but I do not understand the clue.

Harry
Reply With Quote
  #12 (permalink)  
Old 02-21-2008, 09:06 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Hi HARRY,

Sig!

Well, if You agree, I will communicate in English with the hope not to commit many errors...

Which other experiences have You done in Exif data management?

Best Regards

maXim
Reply With Quote
  #13 (permalink)  
Old 02-22-2008, 06:45 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

To overcome the communication problem you could try using Microsoft Word to translate, tools>language>transulate.

Per superare il problema che di comunicazione potreste provare usando il Microsoft Word per tradurre, tools>language>transulate.

Its not 100% reliable but might just help (normally I translate into the language I want and then back to English to see that it hasn't screwed up)

Regards,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #14 (permalink)  
Old 11-28-2009, 02:55 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hi,

Quite some time ago I posted sample code tot extract EXIF data from a JPEG file.

Recently I found myself two errers in that code:

1) Some manufacturers of camera devices store values in the EXIF data with the Least Significant Byte first, others with the Most Significant Byte first. This was not covered in my sample.

2) Values of less than 5 bytes will be stored in the OffSet field itself, in stead of the OffSet fields indicating an offset to the place where that data is stored. E.g the manufacturer name HTC will be stored in the offset field itself.

In my sample code this was not always covered.

I found these problems after buying another camera.

For those interested I have attached the improved sample code.

Harry
Attached Files
File Type: sbp JPEG.sbp (4.6 KB, 14 views)
Reply With Quote
  #15 (permalink)  
Old 03-04-2010, 01:40 PM
Newbie
 
Join Date: Sep 2009
Posts: 3
Default

Harry,

Thanks for posting this sample application. I am interested in accessing the GPS co-ordinates which can be included in the EXIF header (in order to geotag a photo) and wondered if you have already implemented this in a newer version of your code?

Best Regards,
Ian Hatton
Reply With Quote
  #16 (permalink)  
Old 03-06-2010, 10:11 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hallo ihatton,

No, I didn't include GPS data in my code. If you still need it, I will try to do so. Please let me know.

Harry
Reply With Quote
  #17 (permalink)  
Old 03-09-2010, 08:13 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hallo ihatton,

Meanwhile I finished the code to extract latitude, longitude and altitude from the EXIF data. However, I have problems in testing it as I have myself only two images with GPS data. Could you mail me some more images with GPS data, indicating as far as possible the location where these pictures were taken?

Harry
Reply With Quote
  #18 (permalink)  
Old 03-12-2010, 07:49 AM
Newbie
 
Join Date: Sep 2009
Posts: 3
Default

Hi Harry,

Sorry for the delayed response. The attached zip file contains some JPEG samples with GPS data in the EXIF header. I also included the PC command line utility jhead.exe which will display the EXIF header data for cross checking purposes.

Best Regards,
Ian Hatton
Reply With Quote
  #19 (permalink)  
Old 03-13-2010, 09:51 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hi Ian,

Meanwhile I finished the work. Attached you will find the code of the test program, the module that does the extraction and a compiled demonstration program.

The test program includes a own made module to select a file. This module allows to select sub directories as much as you want, which is not possible on the device with the OpenDialog component.

Some explanation: the selection starts from the C:\ disk on the PC or from \ on the device. Directories are marked with "D", files with "F". Click on a "D" line to see lower level directories or files. Click on a "F" line to select that file. With the left button you go to a higher level, if available; with the right button the selection process is cancelled.

I found a program (Resco Photo Manager) on internet to add coordinates to a EXIF file; so I could test the extraction much better.

The files you have sent me are JFIF files; so I could not use them for testing. I learned from internet that some programs handling images change a file with EXIF data into a file with JFIF data.

Good luck. If there are any problems, please inform me,

Harry
Reply With Quote
  #20 (permalink)  
Old 03-13-2010, 10:06 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by HARRY View Post
The test program includes a own made module to select a file. This module allows to select sub directories as much as you want, which is not possible on the device with the OpenDialog
You might be interested in this http://www.basic4ppc.com/forum/tutor...og-device.html which replaces the standard open and close dialogs for all applications.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
data transmission WolfgangGruia Questions (Windows Mobile) 9 07-15-2008 04:56 PM
db2000 - JPEG Exif maXim Italian Forum 5 03-07-2008 06:03 PM
GPS Satellites map and data derez Share Your Creations 2 01-29-2008 05:04 AM
send the hex data alex_up Questions (Windows Mobile) 10 12-18-2007 04:50 AM
Best data to work with GPS Put Claude Questions (Windows Mobile) 4 10-21-2007 08:58 PM


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0