<?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>Designoplasty Web Design and Development Blog &#187; Images</title>
	<atom:link href="http://designoplasty.com/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://designoplasty.com</link>
	<description>HTML, Javascript, PHP, and Me</description>
	<lastBuildDate>Wed, 08 Sep 2010 09:25:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Slicing WordPress Header Images with Photoshop</title>
		<link>http://designoplasty.com/2009/05/28/slicing-wordpress-header-images-with-photoshop/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=slicing-wordpress-header-images-with-photoshop</link>
		<comments>http://designoplasty.com/2009/05/28/slicing-wordpress-header-images-with-photoshop/#comments</comments>
		<pubDate>Fri, 29 May 2009 05:27:26 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://designoplasty.com/?p=716</guid>
		<description><![CDATA[If you want your WordPress theme to stand out you have to bring it with the artwork. That usually means you need a pretty dramatic header and background, and maybe other elements as well. Transparency is really going to allow you to do a lot more interesting things. Some people use transparency in Photoshop and [...]]]></description>
			<content:encoded><![CDATA[<p>If you want your WordPress theme to stand out you have to bring it with the artwork. That usually means you need a pretty dramatic header and background, and maybe other elements as well. Transparency is really going to allow you to do a lot more interesting things. Some people use transparency in Photoshop and then slice into flat JPEGs. That&#8217;s lame.</p>

<p>As you can tell by this theme and my other themes, I love png transparency. For single color and clear images, the file sizes are not bad at all. Even with a gradient involved png can compress that fairly well. But when you have a photograph or complex artwork png images are huge, like 500MB for a 1000&#215;250 header. I wish that someone would develop a free jpeg-like standard that included transparency. Until they do this situation requires image slicing, because you can bring that down to well under 100MB.</p>

<p>I don&#8217;t think I could possibly go through all the ins and outs of image slicing. I&#8217;m sure somewhere on the web, somebody has tried, but I&#8217;ll just tell you some of my favorite tips that I find helpful. Photoshop is really the only way to do slicing, it&#8217;s very easy once you learn the tools and the way I do it, it doesn&#8217;t take long to transfer iterative image changes to the website.</p>

<h3>Photoshop Guides</h3>

<p>You&#8217;ll definitely want to set up some Photoshop guides where you want your slices. Combined with the snapping behavior of the slice tool, I actually find these to be a necessity. Without them, even with the grid turned on, it&#8217;s much more difficult. The slice tools are kind of weird and it&#8217;s hard to see the slice selection box, so the guides really, well, guide you.</p>

<h3>File Names</h3>

<p>Once you have you slices created use the slice selection tool to double click on the slices and change the generated name to the name you want. Photoshop will generate names like MyImage_01, MyImage_01, and MyImage_03. I always changed these to MyImage.T, MyImage.M, and MyImage.B (top, middle, bottom) so I remember which is which. For more complex slices I have my own personal naming scheme that makes sense to me.</p>

<h3>Save for Web &amp; Devices&hellip;</h3>

<p>I always use the <cite>Save for Web &amp; Devices&hellip;</cite> panel. You have to when you want to set the image types, but I never actually save the images here. Instead I use the <cite>Preview&hellip;</cite> button at the bottom of the panel to preview the web page that Photoshop would create. I don&#8217;t want the HTML, just the images, and since Safari is my browser I just drag them one a time to the desktop and then to the web folder where they belong. I know it sounds like it would take longer, but it doesn&#8217;t. It allows me to change only the slices I need and there&#8217;s no cleanup whatsoever, which saves a lot of time.</p>

<h3>The HTML</h3>

<p>I don&#8217;t use the HTML that Photoshop generates, trying to integrate that into your project will take all day. You should get to the point where you can manipulate this type of thing pretty quickly. I use an outer div with a height and width of the whole image. The outer div is also relatively positioned. Then I used child divs that are absolutely positioned inside of that for each of the slices. Because the outer div is relatively positioned, the inner divs positions are relative to that, which makes it easy to calculate their positions, it&#8217;s simple addition and subtraction. Using CSS properties like <cite>bottom</cite> and <cite>right</cite> the values are often 0. If I&#8217;m slicing I&#8217;m always using background-image in CSS rather than actual images, that&#8217;s another way to save time.</p>

<p>A few divs in the markup and a few more lines of CSS and you&#8217;re done!</p>


]]></content:encoded>
			<wfw:commentRss>http://designoplasty.com/2009/05/28/slicing-wordpress-header-images-with-photoshop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
