This project has moved and is read-only. For the latest updates, please go here.

How to get Exif and Tags data for retrieved photos?

Topics: Developer Forum, User Forum
Jan 30, 2009 at 11:30 AM
Edited Jan 30, 2009 at 11:34 AM
Hi all,
Trying my way to a new Flickr desktop client.
Cracking my head on getting the Exif and Tags for each of the photos retrieved by 



myPhotos = FlickrServices.FlickrObj.PhotosSearch(searchOptions);

Any ideas?








Jan 30, 2009 at 8:31 PM
It's it possible some of your code hasn't shown up, but to get the tags you can use the PhotoSearchExtras.Tag:

searchOptions.Extras = PhotoSearchExtras.Tag;

To get the Exif data you need the PhotosGetExif function:

foreach(Photo photo in myPhotos.PhotoCollection)
    ExifPhoto exif = FlickrServices.FlickrObj.PhotosGetExif(photo.PhotoId);

Hope that helps.
Jan 30, 2009 at 10:39 PM
Edited Jan 30, 2009 at 10:47 PM
It does help.

As for the missing code, 

myPhotos =

it's just a call for a static class instancing a Flickr object for a global use to demonstrate the collection I'm querying the Exif\Tags on.
any reason to avoid that (static\singleton Flickr object) technique BTW?

Mar 5, 2012 at 3:58 PM


I am new to FlickrNet and found it very nice. My question is:

I want to have exif data of photos inb a collection and I am trying to use the follwoing code:

 foreach (Photo pic in mergedCollection)            {

ExifPhoto exif = FlickrServices.FlickrObj.PhotosGetExif(pic.PhotoId);



However, I have a red underline for Exifphoto says: "the type or namespace could not be found". Also for FlickrServices, I have a red underline says "the name does not exist is the context". 

What should I do? 


Mar 5, 2012 at 7:08 PM

Well you could either use Intellisense to work out what class the PhotosGetExif method now returns, as it has obviously changed in the 3 years since this post was created. Or look at the help file included in with the binaries.