Showing posts with label Tuts. Show all posts
Showing posts with label Tuts. Show all posts

PS 09 - How to Save Selected Layers from a Document

21 January, 2013

At times when you have a huge layers with all kinds of graphics, and saving a selected layer is always a hardest task.

There is a way where you can save only a selected layer content from photoshop. But, there are some limitations for the image format.


For this tutorial, I have created 8 simple boxes with simple graphics which we are going to export. First step we'll separate and save all the boxes. Second, select a few of them and replace only the selected ones.

Before we start let see how the layers are arranged. It is always a good practice to organize your layers.

(fig 1.0)

Based on the layer palette (fig 1.1 - 1), each and every box are in a separate layer.

And since we have two layers (the graphics and its background), we can combine as one with smart object. (fig 1.1 - 2)

(fig 1.1)

If we save this image (fig 1.2), we'll get an output as single image. To separate, we need to crop them individually. or
Since these are converted into smart objects, we can go inside each and every smart object and save them individually.

Right now it might NOT look like time consuming but what if you have more than 8 layers.

What we want is a more flexible way, so later if we need to edit the graphics or change the color, we can able to save only the selected content and not everything.

(fig 1.2)

First step is to tell photoshop to see each and every individual box separately. So when we save this file, it will all be saved as a separated image.

Because each and every box has a even shape, the easiest way to do is to Slice them first and save them with save for web dialog box. Save for Web is not only for Web, you can also use it to save normal images with JPEG, PNG, or GIF format.

Select the Slice Select Tool from the Tool bar (fig 2.0 - 1) and click on the button 'Show Auto Slice' to display the default slice (fig 2.0 - 2). Auto Slice is always be there in any opened image or any new document created inside photoshop. This will act as a base for all the slices.

 You can learn all about how auto slice works >> Essentials for Slice Select Tool I

(fig 2.0)

Now that we have auto slice in our document, lets see which slice type we can use to slice our image.

There are two kind are slices we can use here. One is User based slice and another is a Layer based slice. Because all the boxes in different layers, using a layer based slice is more effective. This will slice the box based on the layer content.
Another option is to use Divide option which will convert auto slice to user based slice automatically.

Learn more about User based slice and Layer based slice >> Essentials for Slice Select Tool II

For this tutorial we'll use Divide options on auto slice.
With the Slice Select Tool selected, select the auto slice in the document and click 'Divide' from the options bar (fig 2.1). Divide option won't work on auto-slice, but it will automatically Promote to User based slice.

Notice the symbol color and the handles around the image once the divide dialog box is opened.

(fig 2.1)

Use 'Divide Horizontally Into' and 'Divide Vertically Into' to add sections. Type the numbers you want to add more slices. Click 'OK'.

Each slice has its own number and these numbers are generated automatically. This will be the file name when you save these slices.

(fig 2.2)

Go to 'File' menu and select 'Save for Web'.

In the Save for web dialog box select the format to 'JPEG' and click 'Save'. You can also select other formats from the drop-down list.

(fig 2.3)

In the 'Save Optimized As' dialog box, select the format as 'Image Only' (because we don't need any html files) and select 'All Slices' as slices option and click 'Save'.

You can learn more about slices for HTML >> Essentials for Slice Select Tool IV

(fig 2.4)

Now we have all the boxes saved individually with JPEG format.

(fig 2.5)

Now lets edit some graphics (fig 3.0). The first set is the original design and the second set is where the graphics are changed.

01 graphics is moved to 04
04 graphics is moved to 06
06 graphics is moved to 01
(just so you can see more clearly i have reduced the transparency for other slices)

Let's save/replace only the edited slices (01, 04, and 06)

(fig 3.0)

Go to 'save for web' dialog box and select (hold 'Crtl' (Cmd in mac) to select multiple slices) only the changed slices (fig 3.1 - 1) and click 'Save'.

From the 'Save Optimized As' dialog box select 'Selected Slices' (fig 3.1 - 2) as slices option and click 'Save'.

'Selected Slice' will save only the slices you have selected inside save for web dialog box. By selecting this option you can avoid saving all the slices again.

(fig 3.1)

This will replaced the images. If you don't want to replace, you can change the location in the 'Save Optimized As' dialog window.

(fig 3.2)

You can see the replaced slices (fig 3.3 - 2).

In the Slice option inside the 'Save Optimized As' dialog box there are three options you can choose from.

All Slices: This will save all the slices including auto slice
All User Slices: This will save all slices (user based slice, layer based slice, and subslice) except auto slice
Selected Slices: This will save only the Selected Slice(s) from 'Save for Web' dialog box. You can also use auto-slice for this option

(fig 3.3)

When working on webpage design, most of the time there are minor corrections happen for images or buttons, and replacing only the changed graphics and not the complete design is always a huge time saver.

PS 08 - How to Link/Unlink Slices

18 January, 2013

Optimizing multiple slices can be done with linking slices together. If you are going to have same optimization for all the slices, you can link them together instead of selecting each and every one separately. You can select one of the linked slice and assigning a format will share the same format for all the linked slices.

Linking is for image optimization only, it does not affect the slice behavior (layer based slice / user based slice). But, un-linking auto slice will promote to user based slice.


Linking slices together will display a link symbol next to the number sequence, by default all the auto slices are linked.

Learn more about symbol names and its behaviors >> Essentials for Slice Select Tool - II

(fig 1.0)

To link the slices, go to ´Save for Web´ dialog box (File > Save for Web) and select the slices you want to link. (fig 1.1) i have selected slice 03, 13 and 07 (hold ´Shift´ when selecting multiple slices).

After selecting the slices, go to ´Optimize Menu´ and select ´Link Slices´(fig 1.1 - 2). This option (´Link Slices´) activates only if you select more than one slices.

(fig 1.1)

You can see the links in the selected slices, which also display color for easy viewing. Inside save for web dialog box you can see the linked slices with colors, but after you closed this window and go to working area (fig 1.2 - 2), you will only see the link and not the color.

(fig 1.2)

Once the slices are linked, select any one linked slice and change the format.

Here (fig 1.3) i have changed the format to WBMP, just so you can see it more clearly. Changing format for one slice will change all the other linked slices with the same format.

(WBMP is a standard optimizing image format for older mobile devices where it supports only 1bit, black and white)

(fig 1.3)

This will save a huge amount of time. Saving all the slices at once will save each and every linked slices in their own format.

(fig 1.4)

As you can see the (fig 1.5) the format change and the color are reflected only inside the save for web dialog box and not in the working area.

(fig 1.5)

By default auto slices are linked together, you can notice the link symbol next to the number sequence, you can also unlink any one of the auto slice from others or select multiple slices by holding the shift key and unlink them. Anytime you unlink any one of the auto slice will get promoted to User based slice.

You can learn more about how slices works >> Essentials for Slice Select Tool I

(fig 2.0)

To unlink the auto slice, go to save for web dialog box and select the slice you want. I have selected the auto slices in-between the blue boxes (fig 2.1 - 1), and go to optimize menu and select ´Unlink Slices´ from the menu.

(fig 2.1)

Not only it unlinks all the selected auto slices, but it also promote to user based slice. Once promoted, these slices are no longer an auto-slice.

In the Essentials for Slice Select Tool III you can learn many ways to unlink auto slices.

(fig 2.2)

You can also remove the promoted auto slices, just select the slices and press delete. Deleting the promoted slice will bring back the auto slice. But you cannot delete any user based slice which created with slice tool and expecting it to promote to auto slice.

Try it out
- Select any auto slice
- Go to ´Optimize menu´ inside save for web dialog box and select ´Unlink Slices´ (this option is available even if you select one slice)
- Press ´Done´ to close save for web dialog box.
- Select the same slice in the working area, you will see the handles.
- Press 'Delete'

 (fig 2.3)
If you are interested you can buy this keyboard [here]

Deleting the promoted slice will bring back to auto-slice and also retains the same number sequence and links. Please note this works only on auto slices only.

(fig 2.4)

Lets see how to unlink all slices at once, we have couple of linked User based slice and Layer based slice along with auto-slices here.

(fig 3.0)

Even without selecting any slice, you can go to optimize menu and select 'Unlink All Slices'(fig 3.1 - 1). All the linked slices will be released (fig 3.1 - 2).

Note, this works only if you have any link on user based slice or layer based slice. This won't work on auto slice even if you select them. If you want to unlink auto slices, you have to use 'Unlink Slices' from the options.

(fig 3.1)

Linking slices is very useful when you want to share one image format for a set of graphics.

You can Link, Unlink Slices, or Unlink all Slices to any of the slices, but these options is available only inside 'Save for Web' dialog box. If you are saving your image through save for web dialog box, there are some limitations in the image format.

If you want to learn more about slice tool you can go here >> Essentials for Slice Tool

PS 07 - How to Turn Off the Transformation Values

02 January, 2013

Transformation values are the great new addition inside Photoshop CS6, its a powerful feature which display the values straight-a-way without opening the info panel.

Let me tell you why it is powerful, then you can decide whether you want to keep it or not.



Transformation values gives you the info for the object right away. And it only appears when you draw the shape on the screen, after you release the mouse button it goes away.

Sometimes you need to open the info panel to check the dimensions while drawing and it can take up your screen space, but with this transformation value you can get rid of the info panel and you can work freely even in full screen mode.

(fig 1.0)

It displays more than dimensions.

Dimensions: When drawing any shape or even cropping
Dimensions + Coordinates: Hold the 'Spacebar' to display the co-ordinates
Height: Displays only the height value when you adjust the height position.
Width: Displays only the Width value when you adjust the sides
Angle: When you use perspective transform, you can see the angle right way
Rotation: You can see the rotation values while rotating the object
Directions: When moving the object to any side
Angle + length: When drawing with line tool

(fig 2.0)

I agree, not everyone what these information to be displayed on the screen. And here's how you can turn them off.

Go to Edit > Preferences > Interface. You can use 'Ctrl + K' (Cmd + K in Mac) to open the general preferences and select Interface from the list.

(fig 3.0)

You will see the option called 'Show Transformation Values. Select 'Never' from the options. This will hide the values.

If you want to keep, you can also try other options in the list.

(fig 3.1)

Never: When will never display the values (just like in the older version of photoshop)
Top Left: When Display's top left
Top Right: When Display's top right
Bottom Left: When Display's bottom left
Bottom Right: When Display's bottom right
(the display value box will change based on the direction you draw)

(fig 3.2)

You can turn it on at any time, but this option is available only as a interface option inside preferences panel.

PS 06 - How to Change the Canvas Color

31 December, 2012

You can change your canvas color pretty easily in photoshop. Some people like the canvas color to be light gray but not the whole interface. You can also have different color for different modes.

It is completely flexible.



In the older version of photoshop (CS5) we had only 3 options, Default, Black and Custom Color.  In CS6 they have included more options, Default, Black, Light Gray, Medium Gray, Dark Gray, Custom, Select Custom Color.

(fig 1.0)

Right-click on the canvas (not on the image) to display the color options from the context menu. Changing the canvas color won't affect the interface color.

(fig 2.0)

You can also assign different colors to all three different modes. Just select the mode and choose the color from the context menu.

(fig 3.0)

Open the Interface options in the Preferences dialog box (Ctrl + K) and under the 'Appearance' you will see the interface color (Color Theme) and the screen mode/canvas color.

Note the same drop-down list in the appearance option and the context menu are the same. And also notice the three different drop-down options for three screen modes.

(fig 4.0)

Each color has some distinctive look on the canvas. You can select whichever tone you want at any time from the context menu.

(fig 5.0)

Custom color is the color you choose from the color picker, I have picked dark green from the color picker, the second image.

See the first image, I selected 'Custom' from the list and it displayed dark green. This will be my custom color till i change next time.

(fig 6.0)

You can even use the eyedropper to select a color from the image. I have selected the ‘Select Custom Color’ from the context menu to open the color picker and when I move my mouse inside the image i get an eye dropper.

So in this way I can select whatever color I want and that’ll be my custom color, even if i close photoshop and open next time.

(fig 7.0)

Another alternative method to change the custom color is to select the foreground color from the color picker in the tool bar and select the paint bucket tool.

Keep your mouse cursor in the canvas area and hold down the ‘Shift’ key and click on the canvas will apply the foreground color to the canvas.

(fig 8.0)
(If you are interested you can buy this keyboard [Link])

You cannot apply different canvas color for different document.

Currently iam in ‘Standard Screen Mode’ (image below) and I’ve opened two documents, one is an jpeg image and another is a new A4 document created inside photoshop. If I assign a color to one document it will reflects on both.

You can apply different color to different modes (fig 3.0) but not to different documents.

(fig 9.0)

If you do not like any of the color, you can always go back to the 'Default'  from the context menu, which displays the interface color.

PS 05 - How to hide the path when adding layer style

25 December, 2012

Shape layers are created by path and adding layer style with the path is still visible is a bit annoying. Let see how we can fix that.



Nothing fancy just a simple burst design made from polygon shape tool. You can see the settings at the top.



In the Layer you can see the path icon inside the layer thumbnail, which indicates that we have a shape object on the screen

As you can see the layer is selected, which is highlighted with blue or violet, whatever. You can see the burst has a path that goes around the outline, perfect. But, how do we deselect that.



If you click on the empty area in the layer palette which deselects the path and also deselects the layer.



Lets apply the layer style, by selecting the layer on the layer palette and click the 'Add a layer style' at the bottom of the layer or double click the layer to bring the layer style window.



Because the path is visible, its hard to see the style that is applied to the layer.



In the older version of photoshop we have two thumbnails in a layer that creates one shape. One is 'Layer thumbnail' (fill color) and another is the 'Vector Mask Thumbnail' (which contains the mask, that masks the fill color). Selecting the vector mask thumbnail will show the path, and selecting again will hide the path.

In CS6, they have combined both fill color and vector mask as one. Since we don't have an option of vector mask in the layer, we cannot click the layer thumbnail to hide the path, it doesn't work.



Since its a shape layer, photoshop creates the path in the path palette, which contains all the vector path same like the older version. And the path is linked to the vector mask that is inside the layer. But we didn't select the path before, we selected only the layer which selects the path automatically.

Since its a shape layer photoshop assumes you want to edit the path. So we cannot click on the layer to deselect the layer, instead we can click on the path palette to deselect the path.



Click on the path palette empty area, to deselect the path. Notice the layer in the layer palette is still selected, and we don't have the path outline to our object.



Click 'Add a Layer Style' at the bottom of the layer palette to bring the layer style window.



Notice the path on the path palette is not getting affected even after we open the layer style.



After we applied the layer style, still the path is hidden.



If you click on the layer palette to deselect the layer, the path inside the path palette is disappeared. But if you select the layer, the path will get selected as well.


Since the shape layers are the path layer and instead of having fill color, mask, and path (like in the older version) we have only layer and path (CS6). Layer will control the layer and path controls the path.

If we deselect the path from the path palette, the layer treats it like any other layer, you can move them around rotate and even add effects to them without affecting the path.