« Remote Desktop Connection Diagnostics | Main | Migrating from NUnit to Unit Test Framework in Visual Studio 2005 Beta 2 »

Flickr.com with FlickrNet – Photo Sharing Power Tools

Just bought by Yahoo, http://flickr.com has photo sharing priorities in the right place for families. For $25 per year you get 240 GB of incremental storage of personal images where each image can be up to 5MB. Downloads are unlimited. Uploads are limited to 20GB per month. The subscription fee also gives you an ad free interface.

After uploading over 2000 family pictures, I found myself wanting a custom processing tool for transferring meta data I had been storing in filenames to the Tags and Date Taken properties managed by flickr.

Enter Flickr.Net.

I started with the code last updated 2005-2-26 found on GDN Workspaces and looked at the site on WDevs.com which actually seemed to have slightly older code on it.

Because the flikr API makes heavy use of optional arguments, I yielded to temptation and upgraded the project to Visual Studio 2005 beta 1 so I could use nullable types as method arguments.

The result of the modifications to FlickrNet listed below can be downloaded from here http://toneengel.com/d/2005-05-06,FlickrNet,1.12.zip :

·          Added the method Flickr.PhotoSearch to enable searching private photos by date uploaded. It now supports the full API for flikr.photos.search.

·          Added a number of PhotoSearch* methods to search by text, tags, date taken, date loaded, and license.

·          Added enums as appropriate for TagMode, SearchExtras, and SearchMode.

·          Extended the Photos xml mapping class to handle the additional attributes returned by the SearchExtras flags.

·          Added a PhotosSetDates method to allow setting date taken, granularity and date loaded.

·          Added some retry logic to the DoGetResponse method to avoid unhandled timeout exceptions when the servers are heavily loaded.

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)