<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Digital Moose Tracks &#187; wordpress</title>
	<atom:link href="http://digitalmoosetracks.com/blog/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://digitalmoosetracks.com/blog</link>
	<description>.Net, MythTV and Me</description>
	<lastBuildDate>Mon, 08 Mar 2010 06:24:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Yay! PNGOUT – How to install on Dreamhost</title>
		<link>http://digitalmoosetracks.com/blog/yay-pngout-how-to-install-on-dreamhost</link>
		<comments>http://digitalmoosetracks.com/blog/yay-pngout-how-to-install-on-dreamhost#comments</comments>
		<pubDate>Sun, 13 Dec 2009 21:10:21 +0000</pubDate>
		<dc:creator>joshua</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://digitalmoosetracks.com/blog/yay-pngout-how-to-install-on-dreamhost</guid>
		<description><![CDATA[PNGOUT is a wonderful little utility written by …. (of Duke Nukem fame) that compresses PNG files by about 15%-20% on average.  Which if you have many PNG images in you website can make a small but noticeable difference in load times.  Although there are other similar utilities PNGOUT seems to be regarded as the [...]]]></description>
			<content:encoded><![CDATA[<p>PNGOUT is a wonderful little utility written by …. (of Duke Nukem fame) that compresses PNG files by about 15%-20% on average.  Which if you have many PNG images in you website can make a small but noticeable difference in load times.  Although there are other similar utilities PNGOUT seems to be regarded as the best so I decided to use it.  Since I already had a lot of images I wanted to compress on this blog I had to figure out a couple of things to easily compress them.</p>
<ol>
<li>I wanted to run PNGOUT on my webhost server since then I wouldn’t have to transfer the files back and forth to compress them.  Since Dreamhost has linux servers so that required finding a linux port of PNGOUT.  As and added benefit this should make it reasonably simple to make a cron job to compress all PNG images later.</li>
<li>I wanted to basically make it a one line command to compress all my PNG files so I had to figure out how to find all PNG images under a directory and run PNGOUT on them</li>
</ol>
<p>Nothing particularly complex so lets dive in.  Step one was easy as there is already a well know port of PNGOUT available although it took a bit of searching to find the <a href="http://www.jonof.id.au/pngout">download site</a>.  Now I just download the Linux  Dynamic zip, unzip it and load up the i386 executable to my home directory on my webhost. (Make sure to make it executable)</p>
<p>After testing to make sure pngout worked on a single file I set about finding how to do it on all PNG files under a directory.  Give that I am not a linux expert it was pretty easy as the find command let me do everything I wanted.</p>
<pre class="brush: bash;">find blog_directory -name *.png -exec ./pngout {} \;</pre>
<p>That will find anything under blog_directory that matches the naming pattern *.png and run pngout on it.  That was easy enough I may actual setup a cron job sometime.</p>
]]></content:encoded>
			<wfw:commentRss>http://digitalmoosetracks.com/blog/yay-pngout-how-to-install-on-dreamhost/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

