TASSOGRAPHY

Photography and More
by Ben Vincent
TransparentPadder

Share On FacebookShare On Facebook
 
Ben's Blog (71)Ben's Blog (71)
Development (16)Development (16)
Lisa's Blog (6)Lisa's Blog (6)
 
Show All (94)Show All (94)
 
Jun 2010 (4)Jun 2010 (4)
May 2010 (2)May 2010 (2)
Apr 2010 (7)Apr 2010 (7)
Mar 2010 (5)Mar 2010 (5)
Feb 2010 (1)Feb 2010 (1)
Jan 2010 (3)Jan 2010 (3)
Nov 2009 (8)Nov 2009 (8)
Oct 2009 (4)Oct 2009 (4)
Sep 2009 (4)Sep 2009 (4)
Jul 2009 (6)Jul 2009 (6)
Jun 2009 (5)Jun 2009 (5)
May 2009 (7)May 2009 (7)
Mar 2009 (1)Mar 2009 (1)
Feb 2009 (5)Feb 2009 (5)
Jan 2009 (7)Jan 2009 (7)
Dec 2008 (6)Dec 2008 (6)
Oct 2008 (3)Oct 2008 (3)
Sep 2008 (3)Sep 2008 (3)
Aug 2008 (9)Aug 2008 (9)
Jul 2008 (3)Jul 2008 (3)
Jun 2008 (1)Jun 2008 (1)
 
Show All (94)Show All (94)
 
RSS & Atom FeedsRSS & Atom Feeds




TransparentPadder
Home Job Runner Image Usage Tracker Image Blog   |   Highlights   |   Photography   |   Contact   |   About    Atom & RSS Feeds  

Getting Started with Fotofly by Ben Vincent

It’s been about two months since I posted Fotofly on Codeplex and I’ve had plenty of feedback and it’s been download over 100 times! What I haven’t written is a simple introduction on how to use the library. So that’s the aim of this blog.

Step 1 – Download the Library

First you need to download the DLL (or download the source code and build it yourself):

http://fotofly.codeplex.com/Release/ProjectReleases.aspx

Follow this link to download the DLL and save it somewhere you can reference it from your Visual Studio project.

 

Step 2 – Add a Project Reference

Next, open your project, right click on references and select “Add Reference”:

Add a Reference

Select the browse option and point it at the DLL you download in Step 1.

 

Step 3 – Writing a Simple App

Now you can start using Fotofly. Here’s a simple C# console app example that reads “test.jpg” and writes all the Tags to the console:

namespace Fotofly.Example
{
    using System;
    using Fotofly;

    public class Program
    {
        public static void Main(string[] args)
        {
            JpgPhoto photo = new JpgPhoto("test.jpg");

            foreach (Tag tag in photo.Metadata.Tags)
            {
                Console.WriteLine(tag.FullName);
            }
        }
    }
}

 

JpgPhoto.Metadata is the core to Fotofly and if you look at this in a debugger you’ll see all the metadata that’s read:

Fotofly Metadata in Debugger #1

In addition to the standard metadata, there’s a second group called FotoflyMetadata. This is used by Fotofly to store metadata that can’t be safely stored elsewhere in the file. The method of storage follows the XMP standard and is readable by any XMP aware application, nor should they delete\modify it.

Fotofly Metadata in Debugger #2

That’s it for now, please keep the feedback coming.


Posted: Thu, 7 Jan 2010, 07:31:40 GMT Updated: Thu, 7 Jan 2010, 07:33:16 GMT by Ben Vincent
Category: Development
Tags: Fotofly


TransparentPadder TransparentPadder TransparentPadder

Tweet  Ben - Cool! A nice end to the week, my mum was waiting for me in St Louis, she kept it a secret!

(Updated: Fri, 30 Jul 2010, 23:10:30)

Alcatraz . American Express . Amusing Photos . ASP.Net MVC . Australia . Bing . Blue Angels . BMi . Breathe Magazine . British Food . British Virgin Islands . California Highway Patrol . Camping . Canada . Christmas . Christmas Tree . Cleaner Shrimp . codeplex . Cooking . Coral Sea . Diving . Dragonlance . Engagement . Exif . Expedia . Facebook . Fish Tank . Flying . Food . Fotofly . Geotagging . Golden Gate National Recreation Area . Google . Gordon Ramsay . Hotmail . IPTC . Michelin Star . Microsoft . Microsoft Giving Campaign . Monterey Bay Aquarium . Mountain Biking . Nudibranch . San Francisco . Search Engine Optimzation (SEO) . Ship Wrecks . Silverlight . Starbucks . Tassography . The Sea Nettle Jelly . TransRockies . TV Commercial . United Airlines . Usage . Windows 7 . Windows Imaging Component . Windows Live . Windows Live Calendar . Windows Live Photo Gallery . Wineries . XMP


This website, all photography & other content is Copyright © Ben Vincent. Unauthorised use of images is strictly prohibited.
Catalog Last Updated: Mon, 19 Jul 2010, 22:48:43    |   Version v4.0.3861.38195
Powered by
Fotofly Logo