<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - The Sandbox - HD Photo Command Line Encoder</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - The Sandbox - HD Photo Command Line Encoder</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 17:22:28 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 17:22:28 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>4</c9:totalResults>
	<c9:pageCount>-4</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>The Sandbox - HD Photo Command Line Encoder</title>
		<description><![CDATA[<p>I created a very basic command line encoder to convert images to the HD Photo format to do some basic tests. I did it because i don't have Photoshop so i can't use the new beta HD Photo plugin. Vista's new Photo Gallery is able to read these .wdp files
 but i don't think it's possible ti view on XP without someone whipping up a WPF image viewer or by using Photoshop so i recommend you use the Windows Photo Gallery app in Vista to view the output files.<br>
<br>
The app uses the new managed classes for Windows Imaging Component that are part of WPF (in the System.Windows.Media.Imaging namespace) so you'll need the .NET Framework 3.0 installed before you can use it. I included the full source code as well as a compiled
 EXE so feel free to mess around with the code.<br>
<br>
The code is commented a bit (mostly function explanations) but this was thrown together in a couple of hours (including reading through the docs) so don't expect any miracles. Error handling and input checking isvery basic as well so doing silly things and
 breaking the app isn't hard. I also do not support the advanced codec options, just the basic quality level.<br>
<br>
The app saves files into the same folder as the input file(s) with the same filename except they have a .wdp extensions (Vista still doesn't recognize the .hdp extension).<br>
<br>
The app should be runnable on XP but don't expect to be able to view the files on XP unless you have Photoshop and the HD Photo beta plugin installed.<br>
<br>
Here are some examples of the usage:<br>
HdpEncoder &quot;C:\Users\Stebet\Pictures\test.png&quot; -q 1.0 - Saves the picture as a lossless .wdp file.<br>
<br>
HdpEncoder &quot;C:\Users\Stebet\Pictures\test.png&quot;&nbsp;- Saves the picture using a quality setting of 0.9 (default).<br>
<br>
HdpEncoder &quot;C:\Users\Stebet\Pictures\test.png&quot; -q 0.5 - Saves the picture&nbsp;using a quality of 0.5. The Quality can range from 0.0 to 1.0 with 1.0 being lossles and 0.0 being horrid quality <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-4.gif' alt='Tongue Out' />.<br>
<br>
HdpEncoder &quot;C:\Users\Stebet\Pictures\SomePictureFolder&quot; -q 0.8 - Saves all the images in a folder as .wdp's with a quality setting of 0.8<br>
<br>
HdpEncoder &quot;C:\Users\Stebet\Pictures\test.png&quot; -s 102400 - Saves the picture as a 100 kilobyte .wdp file using binary search to find the optimal quality for that file size, using a 2% file size error margin, brute force by encoding again and again and looking
 at the resulting file size. This is good if you want to compare .wdp to .jpg for quick comparison purposes. Do not though that it is not using any of the advanced codec options so the comparison isn't very accurate except for quick and dirty testing.<br>
<br>
As input you should be able to use .bmp, .jpg, .png, .gif, .tiff and .wdp at least (can't remember what other file formats are supported with the WIC by default).<br>
<br>
That's all for now, enjoy the code and feel free to mess around with it and experiment.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/253153#253153</link>
		<pubDate>Wed, 14 Mar 2007 22:05:48 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/253153#253153</guid>
		<dc:creator>Stef&#225;n J&#246;kull Sigur&#240;arson</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Stebet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - HD Photo Command Line Encoder</title>
		<description><![CDATA[<p>Ugh, i just noticed that the file didn't get uploaded and editing the post doesn't seem to work.</p>
<p><a href="http://www.stebet.com/wp-content/uploads/2007/03/hdpencoder.zip">So grab the file here!</a></p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/8ba847ab84c64f2798e29dea0108469a#8ba847ab84c64f2798e29dea0108469a</link>
		<pubDate>Thu, 15 Mar 2007 01:03:11 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/8ba847ab84c64f2798e29dea0108469a#8ba847ab84c64f2798e29dea0108469a</guid>
		<dc:creator>Stef&#225;n J&#246;kull Sigur&#240;arson</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Stebet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - HD Photo Command Line Encoder</title>
		<description><![CDATA[<p>Someone whipped up an&nbsp;HDP image viewer <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>
<p>Check out <a href="http://www.fastpictureviewer.com">http://www.fastpictureviewer.com</a>, the free version does JPEG and HD Photo.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/b619ecb5a107474f83e59dea010846dc#b619ecb5a107474f83e59dea010846dc</link>
		<pubDate>Mon, 03 Mar 2008 18:49:57 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/b619ecb5a107474f83e59dea010846dc#b619ecb5a107474f83e59dea010846dc</guid>
		<dc:creator>Axel Rietschin</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/axelriet/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>The Sandbox - HD Photo Command Line Encoder</title>
		<description><![CDATA[<p>Hey Stebet, you wouldn't be able to update the link to the HDP encoder,&nbsp;would you? It has gone stale, but I could really use the encoder you wrote. Thanks for anything you can put up!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/026a60a1f7c74dfcb64a9dea0108471c#026a60a1f7c74dfcb64a9dea0108471c</link>
		<pubDate>Wed, 13 Jan 2010 06:48:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/253153-HD-Photo-Command-Line-Encoder/026a60a1f7c74dfcb64a9dea0108471c#026a60a1f7c74dfcb64a9dea0108471c</guid>
		<dc:creator>Andrew Milner</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/bitslice/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>