<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'Windows Vista' and 'WPF'</title><link>http://bloggingabout.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=Windows+Vista,WPF&amp;orTags=0</link><description>Search results matching tags 'Windows Vista' and 'WPF'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Released FlickrMetadataSynchr v0.8.0.0 which is fully functional</title><link>http://bloggingabout.net/blogs/erwyn/archive/2007/08/19/released-flickrmetadatasynchr-v0-8-0-0-which-is-fully-functional.aspx</link><pubDate>Sun, 19 Aug 2007 12:23:09 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:343616</guid><dc:creator>Erwyn van der Meer</dc:creator><description>&lt;p&gt;After a long day and night of coding, I released &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr/Release/ProjectReleases.aspx?ReleaseId=6500"&gt;version 0.8.0.0&lt;/a&gt; of my &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr"&gt;Flickr Metadata Synchr tool&lt;/a&gt; on &lt;a href="http://www.codeplex.com/"&gt;CodePlex&lt;/a&gt; this morning. I finally solved the long-standing problem I was having with the &lt;a href="http://msdn2.microsoft.com/en-us/library/ms737408.aspx"&gt;Windows Imaging Component&lt;/a&gt; (WIC) to update metadata. So this is the first fully-functional release of my application.&lt;/p&gt; &lt;h2&gt;Functionality of FlickrMetadataSynchr v0.8.0.0&lt;/h2&gt; &lt;p&gt;This is what the app does:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;It allows you to select a set of your photos on &lt;a href="http://www.flickr.com/"&gt;Flickr&lt;/a&gt; and a folder on your hard drive with images.  &lt;li&gt;It reads the metadata for both Flickr images and the local images.&amp;nbsp;The metadata that is read is:&lt;br /&gt; &lt;ul&gt; &lt;li&gt;Title  &lt;li&gt;Description  &lt;li&gt;Author  &lt;li&gt;Tags  &lt;li&gt;Geo-info (GPS coordinates)  &lt;li&gt;Date and time taken  &lt;li&gt;Last update date and time&lt;/li&gt;&lt;/ul&gt; &lt;li&gt;It matches images on Flickr with local images based on the date and time taken.  &lt;li&gt;It determines on a per picture basis in what direction the metadata should by synced, i.e., which side should be updated, if any. Currently the most recently updated side wins. I am getting help from &lt;a href="http://www.proescholdt.de/"&gt;Timo Proescholdt&lt;/a&gt; for a better algorithm that will allow for a merge of metadata, i.e., a two-way synch.  &lt;li&gt;It updates the metadata on Flickr and&amp;nbsp;in the local images.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;This is a screenshot of the app:&lt;/p&gt; &lt;p&gt;&lt;img src="http://www.codeplex.com/FlickrMetadataSynchr/Project/FileDownload.aspx?DownloadId=17528" alt="" /&gt;&amp;nbsp;&lt;/p&gt; &lt;h2&gt;Previous posts on this tool&lt;/h2&gt; &lt;ul&gt; &lt;li&gt;Here is more info on &lt;a href="http://bloggingabout.net/blogs/erwyn/archive/2007/02/01/digital-workflow-for-flickr.aspx"&gt;why and how you should store the metadata in your images&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;&lt;a href="http://bloggingabout.net/blogs/erwyn/archive/2007/03/18/diving-into-c-for-flickr-metadata-synchr-v0-6-0-0.aspx"&gt;Read here&lt;/a&gt; how I was previously forced to use C++ to update metadata in images stored on the hard drive (I call these local images).&lt;/li&gt; &lt;li&gt;Read about how &lt;a href="http://bloggingabout.net/blogs/erwyn/archive/2007/05/09/should-you-trust-software-as-a-service.aspx"&gt;CodePlex lost my source code&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt; &lt;h2&gt;Workaround for WIC problems&lt;/h2&gt; &lt;p&gt;During my holiday in France in July I received e-mail from Robert A. Wlodarczyk who works at Microsoft. He pinged me to say that he had released &lt;a href="http://blogs.msdn.com/rwlodarc/archive/2007/07/18/using-wpf-s-inplacebitmapmetadatawriter.aspx"&gt;new sample code to update metadata using WIC&lt;/a&gt;. Yesterday, I tried to incorporate&amp;nbsp;similar code into my application and ran into the same type of problems as before. &lt;/p&gt; &lt;p&gt;Because his sample was working, I wasn&amp;#39;t ready to give up again. I finally tracked the problem down to a threading issue. WIC is throwing strange InvalidOperationException and InvalidFormatException exceptions with messages like &amp;quot;Cannot write to the stream&amp;quot; when it is called from a background thread. My app is multi-threaded so that the UI doesn&amp;#39;t hang when it is busy syncing. &lt;/p&gt; &lt;p&gt;After I got confirmation from Robert that WIC indeed suffers from a threading issue, I solved the problem with a work around. I now marshal the call to the code that uses WIC to update metadata to the UI thread using the WPF Dispatcher object. This causes the app to become non-responsive for small amounts of time during the update of local metadata. But that is better than a non-fully-functional app.&lt;/p&gt; &lt;h2&gt;Fully functional, give it a try&lt;/h2&gt; &lt;p&gt;So all is well that ends well. After finally getting WIC to work, I could do away with the C++ code that was causing me headaches ;) And my app now works on Windows XP again. You just need to have the&amp;nbsp;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&amp;amp;displaylang=en"&gt;.NET Framework 3.0&lt;/a&gt; installed.&lt;/p&gt; &lt;p&gt;If you have images on Flickr and you have been busy tagging them, give my app a spin! You can always find the &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr/Release/ProjectReleases.aspx"&gt;latest release on CodePlex&lt;/a&gt;. The &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr/SourceControl/ListDownloadableCommits.aspx"&gt;source code is also available&lt;/a&gt; under a GPL license on CodePlex.&lt;/p&gt; &lt;p&gt;Installing is easy. You just need to unzip the ZIP-file, which&amp;nbsp;contains three files, to a folder. Start the FlickrMetadataSynchr.exe file and you are done. The app remembers the last settings.&lt;/p&gt; &lt;p&gt;If you find any issues, please report them using the &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr/WorkItem/List.aspx"&gt;Issue Tracker for my app on CodePlex&lt;/a&gt;. &lt;/p&gt; &lt;h2&gt;The Future&lt;/h2&gt; &lt;p&gt;Even though the app is now able to sync metadata in both Flickr images and local images, there is always room for improvement. Here are my ideas, some of which are based of suggestions by people on CodePlex:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Improve the synchronization to also allow two-way synchronization for a picture pair. I.e., one side doesn&amp;#39;t have to win. For example, if the Flickr image has just the title set and the local image the description, the metadata should be merged.  &lt;li&gt;Add UI to see the match that is made by the tool and how it proposes to sync the metadata.  &lt;li&gt;Allow you to exclude images if the match isn&amp;#39;t good.  &lt;li&gt;Allow you&amp;nbsp;to overrule the sync proposal and sync the metadata in a different direction (on a per property basis) . &lt;li&gt;Add UI to store multiple mappings between Flickr sets and local folders. Currently the app only remembers the last folder and Flickr set that was used.  &lt;li&gt;Add click-once deployment. That way the app can automatically check for new versions and update itself.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;If you have any other ideas please post them at the &lt;a href="http://www.codeplex.com/FlickrMetadataSynchr/Thread/List.aspx"&gt;discussions page for my app on CodePlex&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>