<?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>Colin on Photography &#187; rant</title>
	<atom:link href="http://colincarmichael.ca/tag/rant/feed/" rel="self" type="application/rss+xml" />
	<link>http://colincarmichael.ca</link>
	<description>My thoughts on photography and other things.</description>
	<lastBuildDate>Wed, 23 May 2012 05:03:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WordPress Image Handling Sucks (WP Wednesday)</title>
		<link>http://colincarmichael.ca/wordpress-image-handling-sucks-wp-wednesday/</link>
		<comments>http://colincarmichael.ca/wordpress-image-handling-sucks-wp-wednesday/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 16:12:04 +0000</pubDate>
		<dc:creator>Colin Carmichael</dc:creator>
				<category><![CDATA[General Interest Stuff]]></category>
		<category><![CDATA[Social Media Stuff]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://colincarmichael.ca/?p=1574</guid>
		<description><![CDATA[WARNING: Today&#8217;s WordPress Wednesday post is a selfish rant &#8211; and two days early. So much for Christmas spirit. ;) Yes, I said it. The words &#8220;WordPress&#8221; and &#8220;sucks&#8221; in the same breath. It&#8217;s a rare thing for a WP fanboy like me to do, but today, the Automattic folks deserve it. This week&#8217;s release [...]
Related posts:<ol>
<li><a href='http://colincarmichael.ca/salvationarmy-ca-a-great-wordpress-example/' rel='bookmark' title='SalvationArmy.ca &#8211; a great WordPress example (WP Wednesday)'>SalvationArmy.ca &#8211; a great WordPress example (WP Wednesday)</a></li>
<li><a href='http://colincarmichael.ca/addthiscom-wordpress-plugin/' rel='bookmark' title='AddThis.com WordPress Plugin'>AddThis.com WordPress Plugin</a></li>
<li><a href='http://colincarmichael.ca/your-fave-wordpress-theme/' rel='bookmark' title='Your Fave WordPress Theme?'>Your Fave WordPress Theme?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://colincarmichael.ca/wp-content/uploads/2009/12/wordpress-logo-stacked-150.jpg" alt="" title="wordpress-logo-stacked-150" width="150" height="93" class="alignright size-full wp-image-1514" /><em><strong>WARNING:</strong> Today&#8217;s <a href="http://wordpress.org">WordPress</a> Wednesday post is a selfish rant &#8211; and two days early. So much for Christmas spirit. ;)</em></p>
<p>Yes, I said it. The words &#8220;WordPress&#8221; and &#8220;sucks&#8221; in the same breath. It&#8217;s a rare thing for a WP fanboy like me to do, but today, the <a href="http://automattic.com">Automattic</a> folks deserve it.</p>
<p>This week&#8217;s <a href="http://wordpress.org/development/2009/12/wordpress-2-9/">release of WP 2.9</a> brought some awesome image editing tools to WordPress users &#8211; but the entire image handling system is still broken. It&#8217;s a kludge.</p>
<p>When you upload an image to WP, it &#8220;crunches&#8221; it &#8211; creating up to 4 versions of the image at various sizes (thumbnail, medium, large and original) on the server.  These are now the ONLY sizes available to you in your posts. In addition, with the exception of gallery-generated pages, references to these images inserted into posts are specific to the pixel size (150, 300, etc.) rather than the relative size (thumbnail, medium, large, etc). Yes, you can change the pixel sizes of the relative sizes &#8211; but once an image is uploaded, you&#8217;re stuck with the settings of the day.</p>
<p>This wouldn&#8217;t bother me so much if I didn&#8217;t know that there was an alternative. <strong>Why can&#8217;t WP resize images on-the-fly at the server? </strong></p>
<p>Example:<br />
<img src="http://colincarmichael.ca/wp-content/uploads/2009/12/SDC11443-300x199.jpg" alt="William Bundled Up" title="William Bundled Up" width="300" height="199" class="size-medium wp-image-1546" /><br />
This image is located at http://colincarmichael.ca/wp-content/uploads/2009/12/SDC11443-300&#215;199.jpg. See those pixel references in there? This image physically exists on the server. Very limiting.</p>
<p>In contrast, look at these: (from a Drupal site I run, the tech isn&#8217;t Drupal-specific)<br />
<img alt="" src="http://www.presbyterian.ca/photoresize/4398/600" title="server-side-resized"  /><br />
URL: http://www.presbyterian.ca/photoresize/4398/600<br/><br />
<img alt="" src="http://www.presbyterian.ca/photoresize/4398/300" title="server-side-resized" /><br />
URL: http://www.presbyterian.ca/photoresize/4398/300<br/><br />
<img alt="" src="http://www.presbyterian.ca/photoresize/4398/150" title="server-side-resized"  /><br />
URL: http://www.presbyterian.ca/photoresize/4398/150<br/><br />
<img alt="" src="http://www.presbyterian.ca/photoresize/4398/news" title="server-side-resized"  /><br />
URL: http://www.presbyterian.ca/photoresize/4398/news<br/></p>
<p>See those pixel references in the URLs? There are no images on the server in those specific sizes &#8211; the server resizes the original image on the fly as required. See that last one with a relative size of &#8220;news&#8221;? The server resizes that to a size specified in the settings, in this case 250px.</p>
<p>There&#8217;s no reason that WordPress&#8217; image handling could work the same way. You&#8217;d only need to store the original of the image on the server, and you could insert images of any size in your posts. Additionally, if you had &#8220;virtual&#8221; sizes defined such as full=600px, half=300px, thumb=150, etc, you could have images that would resize gracefully if your theme changes and you now need full to be 400px and half to be 200px.</p>
<p>So, Automattic, how &#8217;bout it? Now that you&#8217;ve given us image-editing tools in 2.9, can you address the broken image-handling problem?</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcolincarmichael.ca%2Fwordpress-image-handling-sucks-wp-wednesday%2F&amp;t=WordPress%20Image%20Handling%20Sucks%20%28WP%20Wednesday%29" id="facebook_share_button_1574" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1574') || document.getElementById('facebook_share_icon_1574') || document.getElementById('facebook_share_both_1574') || document.getElementById('facebook_share_button_1574');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1574') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://colincarmichael.ca/wordpress-image-handling-sucks-wp-wednesday/&via=ccarmichael&text=WordPress Image Handling Sucks (WP Wednesday)&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://colincarmichael.ca/wordpress-image-handling-sucks-wp-wednesday/&via=ccarmichael&text=WordPress Image Handling Sucks (WP Wednesday)&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>Related posts:<ol>
<li><a href='http://colincarmichael.ca/salvationarmy-ca-a-great-wordpress-example/' rel='bookmark' title='SalvationArmy.ca &#8211; a great WordPress example (WP Wednesday)'>SalvationArmy.ca &#8211; a great WordPress example (WP Wednesday)</a></li>
<li><a href='http://colincarmichael.ca/addthiscom-wordpress-plugin/' rel='bookmark' title='AddThis.com WordPress Plugin'>AddThis.com WordPress Plugin</a></li>
<li><a href='http://colincarmichael.ca/your-fave-wordpress-theme/' rel='bookmark' title='Your Fave WordPress Theme?'>Your Fave WordPress Theme?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://colincarmichael.ca/wordpress-image-handling-sucks-wp-wednesday/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

