Reading Exif/GPS data from loaded image

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 10:33 am

Hello,

You need to import necessary namespaces:

Code: Select all

Imports Vintasoft.Imaging.Codecs.Jpeg
Imports Vintasoft.Imaging.Codecs.Tiff
Best regards, Alexander

js95007
Posts: 7
Joined: Wed Feb 01, 2012 9:28 am

Re: Reading Exif/GPS data from loaded image

Post by js95007 » Wed Feb 01, 2012 11:32 am

Thanks for that, however I included:

Code: Select all

Imports Vintasoft.Imaging
Imports Vintasoft.Imaging.Codecs.Jpeg
Imports Vintasoft.Imaging.Codecs.Tiff
though all three come up with warnings, "Namespace or type specified in the Imports 'Vintasoft.Imaging.Codecs.Tiff' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases."

Any suggestions?
Thanks

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 11:39 am

Have you added reference to Vintasoft.Imaging.dll from your project?

If yes, please send your project for tests to support@vintasoft.com

Best regards, Alexander

js95007
Posts: 7
Joined: Wed Feb 01, 2012 9:28 am

Re: Reading Exif/GPS data from loaded image

Post by js95007 » Wed Feb 01, 2012 11:47 am

Where would I be able to download that from

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 12:01 pm

:-)))

Please download VintaSoftImaging.NET SDK from our web site.

Best regards, Alexander

js95007
Posts: 7
Joined: Wed Feb 01, 2012 9:28 am

Re: Reading Exif/GPS data from loaded image

Post by js95007 » Wed Feb 01, 2012 12:51 pm

Hey I have downloaded the SDK, referenced the Vintasoft.Imaging.dll into Visual Basic, however:
The line
code]Using jpegStream As FileStream = New FileStream("..\..\geotag005.jpg", FileMode.Open, FileAccess.Read)[[/code]
Shows up as an error, being undefined, with the option to add "Import System.io
So I did that, which removed that particular error, but now:

Code: Select all

Dim exif As ExifData = jpeg.Exif
shows up as an error, Error --- "Vintasoft.Imaging.Codecs.Jpeg.JpegFile"
Thanks

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 1:00 pm

Please send me full description of error.

Best regards, Alexander

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 1:52 pm

Since version 5.0.3 the JpegFile.Exif property was moved to JpegPage.Exif.

You should use this code:

Code: Select all

Dim exif As ExifData = jpeg.Page.Exif
Best regards, Alexander

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Reading Exif/GPS data from loaded image

Post by Alex » Wed Feb 01, 2012 1:58 pm

I have updated code of all examples in this topic.

Best regards, Alexander

js95007
Posts: 7
Joined: Wed Feb 01, 2012 9:28 am

Re: Reading Exif/GPS data from loaded image

Post by js95007 » Wed Feb 01, 2012 2:11 pm

Thanks works much better :D
However is there any way to make this into readable, standard GPS long/lat format? Currently if I copy everything into Microsoft Word, there are 12 pages of assorted statements and numbers.
Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests