spanner5351
New member
- Joined
- Jan 6, 2009
- Messages
- 3
- Programming Experience
- 1-3
Hi guys,
only just signed up here because i have been pulling my hair out trying to find answers all of the internet but to no avail!
As part of a project I am writing a program to be able to add GPS information to jpg pictures. For example to add the latitude and longitude to a photo.
So far i have managed to be able to change the latitude and longitude of jpg photos which already have these GPS field in the EXIF.
However...if i try to add the latitude and longitude information to photos that have never been tagged before i get the following error:
"Property cannot be found." on the following lines of code:
Dim latProp As PropertyItem = photo.GetPropertyItem(2)
Dim longProp As PropertyItem = photo.GetPropertyItem(4)
Ok so this to me means, that this photo does not have the above PropertyItems within it EXIF...
my question is....how do i add these PropertyItems to the file!!!???
any ideas!!?
oh and if i havent explained myself clearly, please let me know so i can clarify as i really do need to answers to this.
Thanks!!
-----
Information - Using Visual Studio 2005 and writing in vb.net
only just signed up here because i have been pulling my hair out trying to find answers all of the internet but to no avail!
As part of a project I am writing a program to be able to add GPS information to jpg pictures. For example to add the latitude and longitude to a photo.
So far i have managed to be able to change the latitude and longitude of jpg photos which already have these GPS field in the EXIF.
However...if i try to add the latitude and longitude information to photos that have never been tagged before i get the following error:
"Property cannot be found." on the following lines of code:
Dim latProp As PropertyItem = photo.GetPropertyItem(2)
Dim longProp As PropertyItem = photo.GetPropertyItem(4)
Ok so this to me means, that this photo does not have the above PropertyItems within it EXIF...
my question is....how do i add these PropertyItems to the file!!!???
any ideas!!?
oh and if i havent explained myself clearly, please let me know so i can clarify as i really do need to answers to this.
Thanks!!
-----
Information - Using Visual Studio 2005 and writing in vb.net