{"id":204,"date":"2007-09-20T11:17:36","date_gmt":"2007-09-20T16:17:36","guid":{"rendered":"http:\/\/www.killersites.com\/blog\/2007\/psd-to-web-page\/"},"modified":"2008-01-29T14:36:06","modified_gmt":"2008-01-29T19:36:06","slug":"psd-to-web-page","status":"publish","type":"post","link":"https:\/\/www.killersites.com\/blog\/2007\/psd-to-web-page\/","title":{"rendered":"Photoshop to a Website"},"content":{"rendered":"<p><img src='https:\/\/www.killersites.com\/blog\/wp-content\/uploads\/2007\/10\/psd-to-web1.gif' alt='Photoshop to a web page' \/><\/p>\n<p>I&#8217;ve been asked on many occasions: how can you take a Photoshop layout and turn it into a web page?<\/p>\n<p>Actually, here is a snippet of an email from a reader:<br \/>\n<em><br \/>\n&#8220;I would love to see an example of taking a psd file, which is how I usually start. And then go to Step One, Step Two, etc to turn it into a web page.&#8221;<\/em><\/p>\n<p>You have a few options &#8230; let&#8217;s start with the option you should avoid: slicing images.<\/p>\n<p><!--more--><\/p>\n<p><strong>Why slicing images is bad:<\/strong><\/p>\n<p><strong>Note:<\/strong> to be clear, I am talking about slicing up an entire page and then reassembling it within an HTML table.<\/p>\n<p>Image slicing was invented in the mid 90&#8217;s (I remember when I did it manually!) where you would create your web page layout in Photoshop (any image editor really,) and then use the guides to create &#8216;slices&#8217; out of your page. <\/p>\n<p>These pieces were then cut out (using the selection tool + copy) and saved as individual images (gif&#8217;s for solid color, jpg&#8217;s for continuous tone &#8211; photographs) where you would reassemble the pieces in an HTML table.<\/p>\n<p>Why would you slice images, why not just import the sliced graphics\/page as one big image? <\/p>\n<p>In a nushell: optimization \/ file size. You would select portion of the image that were best save as gif&#8217;s and select other portions that were best saved as jpgs to reduce the over all size\/weight (in Kb&#8217;s) of your image.<\/p>\n<p>I&#8217;m getting to the point &#8230; later Photoshop provided an image slicing tool and made this easy. But you should not use image slicing anymore because:<\/p>\n<ol>\n<li>Image slicing requires tables to hold images together .. not good.<\/li>\n<li>Web pages built this way are terrible to manage and update. You always have to go back to Photoshop to make any changes.<\/li>\n<li>Web pages built this way are NOT search engine friendly.<\/li>\n<li>It&#8217;s just so 1996 &#8230;  ach!<\/li>\n<\/ol>\n<p>That said, there maybe is a time when you can use this &#8216;old-school&#8217; approach to building a web page: when you are prototyping. <\/p>\n<p>&#8230; That is to say, when you need to get something out quickly to perhaps, show clients some early mock-ups. Or maybe when it is a one page job that is temporary.<\/p>\n<p>Beyond that, you ought to be using modern web design techniques that largely includes <a href=\"http:\/\/www.csstutorial.net\/css_tutorial_part2.php\">CSS for web page layout<\/a>.<\/p>\n<p><strong>So what is the best approach?<\/strong><\/p>\n<p>If you are comfortable with laying out pages in Photoshop, that&#8217;s cool. But once you&#8217;ve done that, you need to go to HTML and CSS and recreate your basic structure. If you are not comfortable with CSS, you can use <a href=\"http:\/\/www.webshapes.org\/\">free open source web templates<\/a> that can serve as a framework for your website.<\/p>\n<p><strong><br \/>\nAbout Using Website Templates<\/strong><\/p>\n<p>.. You are basically looking for (in a template) a basic layout that goes with your design, for example:<\/p>\n<ul>\n<li>1 column.<\/li>\n<li>2 column.<\/li>\n<li>center aligned.<\/li>\n<\/ul>\n<p>.. etc.<\/p>\n<p>Once you&#8217;ve found a template that works, you can then drop your images into place. <\/p>\n<p><strong>What if you don&#8217;t understand HTML and CSS?<\/strong><\/p>\n<p>You can turn to programs like <a href=\"http:\/\/www.killersites.com\/videoTutorials\/Tutorial_Dreamweaver\/index.jsp\">Dreamweaver<\/a> &#8230; they can help because web design programs like that, make creating web pages fairly easy with features like:<\/p>\n<ul>\n<li>drag-n-drop web page editing<\/li>\n<li>CSS templates<\/li>\n<\/ul>\n<p>&#8230; And much more.<\/p>\n<p>I would suggest that if you see yourself doing more and more web work, that you help yourself and learn the <a href=\"http:\/\/www.how-to-build-websites.com\/\">code behind the web pages<\/a>.<\/p>\n<p>Thanks for reading.<\/p>\n<p>Stefan Mischook<\/p>\n<p>www.killersites.com<br \/>\nwww.killerphp.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been asked on many occasions: how can you take a Photoshop layout and turn it into a web page? Actually, here is a snippet of an email from a reader: &#8220;I would love to see an example of taking a psd file, which is how I usually start. And then go to Step One, &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[26,103],"_links":{"self":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}