6 Photoshop time savers for web designers
Like many web designers, Photoshop is my tool of preference when it comes to doing website mockups. As such, I spend a decent chunk of my time working with the program, and have picked up a number of techniques that speed up my workflow. I’m not talking about creating shiny image reflections, or beveled starbursts, but rather simple tricks that shave a few minutes off your working day so you can go home earlier.
For some unfathomable reason, Photoshop’s line tool doesn’t allow you to create dotted lines, which is a shame, because dotted lines are something web designers use with great frequency. To create a dotted line, you could use the pencil tool to draw each individual dot, but that would be painfully slow. A much more efficient technique is to use a pattern fill.
Create a new 2×1 pixel Photoshop document, and hide the background layer. Create a new layer, and use the pencil tool to fill in one pixel.
Cmd+A on a Mac) to select the entire canvas, and choose
Edit > Define Pattern. Give your new pattern the name ‘2×1 dotted line’ You can now close the Photoshop file.
To apply the pattern to a layout, create a new layer in your document and use the marquee tool to make a selection that is 1 pixel high and as wide as you want your dotted line.
Edit > Fill, and in the dialog that appears set the Contents to Pattern, and select the Custom Pattern you created earlier.
Your selection will be filled with the dotted line.
The great thing about this trick is that your patterns are stored for future Photoshop sessions, saving you even more time.
One thing almost every website layout requires is a couple of good old fashioned rectangular images. Often a layout requires several images cropped to the same dimensions, and resizing and cropping them individually is a pain in the backside. Thankfully Photoshop’s clipping masks give us a quick way of cropping images to fit a pre-defined space on the canvas.
To begin, create a solid rectangular placeholder for your image.
Paste your unscaled image into a new layer above the placeholder.
Option-click on a Mac) on the image layer, and choose ‘Create Clipping Mask’. A mask the same shape as the placeholder layer will be applied to the image.
Now you can scale your image up or down in size by using the keyboard shortcut
Cmd+T on a Mac) and dragging the transform handles, or move it around by clicking and dragging.
Once you are happy with the way the image is cropped by the mask, hit
Enter to apply the transformation.
When creating a website layout I find myself obsessively increasing and decreasing the size of objects on the page, trying to strike the right visual balance. In older versions of Photoshop objects, scaling and object down, and then back up again would make destroy pixel information and make the image blurry. That’s where Photoshop CS2 comes in, with its ingenious ‘Smart Objects’.
Any layer can be turned into a Smart Object by right-clicking (
Option-clicking on a Mac) it and choosing ‘Group into New Smart Object’. Alternatively, paste an image or vector shape into your Photoshop document, and when prompted choose to paste as a Smart Object.
The new Smart Object contains the layer’s original pixel (or vector) information, and can be transformed to your heart’s content without losing quality.
To release the Smart object, you need to rasterize its contents by right-clicking (
Option-clicking on a Mac) its layer and choosing ‘Rasterize Layer’.
Being able to create a selection from a layer is extremely handy. Here is a real world example. Remember the dotted line from tip #1? Lets say we want to change its color from black to orange.
Cmd on a Mac) and click the thumbnail of the layer containing the dotted line. This will create a selection from the layer.
Set your foreground color to orange.
Make sure the layer containing the dotted line is selected – if not, click on it. Now hit
Opt+Delete on a Mac) to fill the selection with your foreground color.
There are many situations in which it can be useful to create selections from an existing layer, and all it takes is one click.
Photoshop’s adjustment layers allow you to apply all the regular image adjustments – hue, saturation, color balance, etc – to an image without permanently modifying it. There are a myriad of different effects you can achieve using Photoshop adjustment layers, but I use them most frequently to change the color scheme of my mockups.
In this example, I have mocked up a nice shiny “web 2.0″ style design. The only thing is, I’m not loving the monochromatic navigation bar, and I’d like to try out some other colors. Using an adjustment layer it is easy to experiment with different color schemes without altering the original layer.
First of all, put the layers containing the artwork your want to colorize into a new folder, and set the folder blending mode to Normal. This is so that the adjustment layer will only affect the folder’s contents, not any layers below it.
Select the folder, click the ‘Create new fill or adjustment layer’ icon at the bottom of the Layers palette, and choose ‘Hue/Saturation’.
In the Hue/Saturation dialog box tick ‘Colorize’ and adjust the Hue, Saturation and Lightness values until you are happy with the color of the navigation bar. Click ‘OK’ to confirm the adjustments.
In future, you can double click the adjustment layer to open the dialog box and modify its values. This lets you experiment with different color schemes until the cows come home, all without altering the underying artwork.
Web design often requires that we apply the same adjustments to a number of images. For example resizing a large number of images to use in a photo gallery, or converting them to grayscale. Rather than bore yourself to tears stepping through the same transformations for each and every image, you can record the steps in a Photoshop action, and apply them with a single click.
Lets say you want to create thumbnails of a bunch of images. Open your first image in Photoshop, then open the Actions palette by choosing
Window > Actions. Click the ‘Create a new action’ icon at the bottom of the Actions palette, and give your action a name.
Your action begins to record automatically. Every transformation you apply to your image will now be saved in the new action.
Perform whatever transformations you like to the image. For this example choose
Image > Image Size and resize your image to the dimension it needs to be for the photo gallery. Next choose
Filter > Unsharp Mask and sharpen the image.
Click the ‘Stop playing/recording’ icon at the bottom of the Actions palette. Your action is now ready to use.
To apply the same action to another image, open the image, select your new action in the Action palette, and click the ‘Play selection’ icon. Hey presto! The image is resized and sharpened.
Photos used in this article are by Simon Wuyts, and are available fromstock.xchng.