Page 2 of 3

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 10:33 am
by Alex
Hello,

You need to import necessary namespaces:

Code: Select all

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

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 11:32 am
by js95007
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

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 11:39 am
by Alex
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

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 11:47 am
by js95007
Where would I be able to download that from

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 12:01 pm
by Alex
:-)))

Please download VintaSoftImaging.NET SDK from our web site.

Best regards, Alexander

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 12:51 pm
by js95007
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

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 1:00 pm
by Alex
Please send me full description of error.

Best regards, Alexander

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 1:52 pm
by Alex
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

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 1:58 pm
by Alex
I have updated code of all examples in this topic.

Best regards, Alexander

Re: Reading Exif/GPS data from loaded image

Posted: Wed Feb 01, 2012 2:11 pm
by js95007
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