Clips - 9 Photoshop Editing Tips Web Developers Should Know
Clips - 9 Photoshop Editing Tips Web Developers Should Know
Know
Apr 27 2010 by Omer Greenwald |
40 Comments
There are quite a few reasons why having basic Photoshop skills beyond slicing PSD’s to
XHTML/CSS is essential to any web developer.
I have discussed some of those reasons in this article on my blog, but to make a long story
short, there are times when you just need to do minor image editing tasks but don’t want to
hassle your web designer for it.
Here are common tasks and processes that web developers often need to deal with when
working on a web design/web interface using Photoshop.
Let’s take an RSS icon for example. RSS icons come in different shapes and sizes.
When you finally find the "perfect” icon, you sometimes need to modify it. One common issue
is that if your site’s background color is one color and the icon’s background is another color,
to make them seamlessly match, there is a little work we need to do to it.
If the image is in GIF format, I recommend converting it to PNG because they’re similar, but
PNGs will usually be smaller in file size. Read about the pros and cons of using GIF versus
PNG at W3C.
To do that, open the image in Photoshop, then go to File > Save for Web & Devices (Ctrl/Cmd
+ Alt/Option + Shift + S), then select either PNG-8 or PNG-24 under the Optimized file format
drop-down on the right-side. You’ll have to see which one is better in terms of quality and file
size.
(See a guide on how to save images for the web.)
Then close the original GIF file because we are done with it, and then open the image with the
new format you have just saved.
Now if you look at your Layers Panel (if it’s not visible, hit the F7 key to toggle the panel’s
visibility), you might see that there is a layer called Background.
Right-click on that layer, select Layer from Background from the menu that appears, and then
click OK.
Second step: use the Magic Wand Tool (W) from the Tools Panel.
2. Make sure that the Tolerance value is set to about 20 and that the Anti-alias and
Contiguous options are checked as demonstrated below.
Then click on the white (or whatever color) background area surrounding the icon.
Make sure that the selected area doesn’t "eat" too much of the shadow below the icon. If it
does, play with the tolerance value a bit (and reselect the background again with the Magic
Wand Tool), until you get the desired result.
2. Click on the Paint Bucket Tool (G). If you don’t see the Paint Bucket Tool, right-click on the
Gradient Tool icon and choose the Paint Bucket Tool from the menu that appears.
Then, click inside the selected are around the icon to apply the color you chose.
However, finding the relevant layer can be tedious when there are many layers in your work
or if the layers aren’t named intuitively.
After enabling Auto-Select, clicking anywhere in the canvas itself will activate the relevant
layer.
4. Isolating a layer
After selecting a layer, you may want to copy it to a new document where you can save it as
a separate image.
However, there is a quicker way that preserves the accurate size of that layer:
1. Hold down Ctrl/Cmd and click on the layer’s thumbnail. This should make an automatic
selection around the objects in that layer.
3. Press Ctrl/Cmd + N to create a new document. Photoshop detects the size of the layer you
want to copy and creates a new document with the same size.
1. Select a layer from the Photoshop document you wish to copy from. If you need to copy
multiple layers, hold down Ctrl/Cmd and click on the layers in the Layers Panel.
3. Click anywhere in the canvas and drag the layers up to the tab of the document you want
to copy the layers to.
The window will switch to the second document. Release the mouse button in the canvas
where you wish to place the copied layers in the second document.
First, to get a closer look at your selection, press Ctrl/Cmd + + which will zoom into your
work.
Go to Select > Modify > Expand or Select > Modify > Contract.
Type the number of pixels you wish to expand or contract your selection by, and then click
OK.
2. Click on the Layer Comps menu and select New Layer Comp or click on the Create a new
layer comp button at the bottom of the Layer Comps Panel.
3. Type the name of your Layer Comp, check the Visibility option and click OK.
2. Select the house on the canvas. Then press Ctrl/Cmd + J to duplicate it into a new layer.
3. Click Ctrl/Cmd + U to adjust Hue/Saturation for the new layer. Scroll the saturation left to
turn the house to black and white.
The result:
Remember that you still have the colored version of the house. To view it, just toggle the
duplicated layer’s visibility.
Rulers (Ctrl/Cmd + R)
1. Click, hold, and drag from the top left corner of your rulers towards the canvas.
2. Release the mouse button where you want to start the axes.
Tip: To change the measurement units of the rulers (from inches to pixels for example),
double- click on the ruler itself to open the Units & Rulers Preference dialog window (or go to
Edit > Preferences > Units & Rulers) and select the desired measurement unit.
2. Click and drag from the start to end-point that you wish to measure.