preview

How to Use Content-Aware-Scaling in Photoshop CS4

The latest version of Photoshop CS4 offers a variety of new features that save time and work. One of them is the newly added Content-Aware-Scaling feature, which automatically preserves important areas like people, buildings, objects, as you resize your images. It saves you a lot of time, since there’s no time-consuming cropping and retouching required anymore. How and why you should use this? That’s what we’ll cover in this tutorial!

Introduction

Since the release of the Content-Aware-Scaling feature, I’ve always wondered where and how I could use this feature in my projects. After experimenting with it, I realized how useful it is. As mentioned above, Content-Aware-Scaling automatically recognizes important areas of an image, protects them from being squeezed, and does the opposite to unimportant areas by cropping and retouching these. Of course there are limitations, but overall it’s a great new feature added to Photoshop. Let’s take a look at the details!

Preparation

First, you need to import an image. In order to use the Content-Aware-Scaling, we need to convert this Background layer to an independent layer. Double-click on the layer, give it a name, and hit OK.

How you can find it?

Make sure your layer is selected. Go to Edit > Content-Aware-Scaling or use the shortcut Command + Shift + Alt + C. The image should now be framed, providing transform handles for adjustments.

Scaling

As soon as you move the handles, Photoshop will recognize important areas automatically and transform the image properly without distorting the image. There is a limit to this ability though and you’ll have to use your eye with this feature. You can protect specific areas better by just using the Marquee-Tools before selecting Content-Aware-Scaling, and we’ll review this shortly.

Let’s Review the Difference this Makes

Using the Free Transform Tool

This is how an image looks after resizing it to 60% using the Free-Transform-Tool.

Content-Aware-Scaling & Difficulties

As you can see, the mountain and some other areas look good, but there’s a problem starting to happen with the boat – it’s looking distorted. To a certain point, Photoshop does a great job, but you have to be careful, because sometimes you’ll see distortion in your images. If you want to secure specific areas in your images, you can use an alpha channel to help protect content during resizing. In the next steps, we’ll take a look at masking.

Masking

As mentioned above, there’s a simple solution to protect important areas in the image, and that’s using Masks. There are several ways to create masks or selections and save them as an Alpha Channel. We’ll take a look at two of them and we’ll tell Photoshop to use these selections to protect image areas from distortion.

Quick Masking

Click on the Edit In Standard Mode button or use the Shortcut (Q) to enter the Modus.

Selecting the Sail Boat Using the Brush

I chose a simple brush, used different sizes and painted out the Boat. You can switch between black, gray and white colors to paint or erase your selections. The masking doesn’t have to be perfect, but you should make sure the object is selected.

Close the Standard Mode

Photoshop creates a selection using the information from above. We need to invert the selection since we want to keep the boat area. Go to Select > Inverse (Command + Shift + I).

Inverted Selection

This is how the selection should look now. It’s ready to be saved to use it later as an alpha channel. The Content-Aware-Scaling feature uses Channels to protect specific areas in your images.

Polygonal Lasso Tool

Here’s another selection I created using the Polygonal Lasso Tool. It’s not as accurate as the selection above, but that’s OK. There are several ways to create Masks for protecting specific areas in your images. Just experiment with it, until you have a good selection.

New Channel

Save New Channel

After creating and optimizing our selection, it’s time to save the selection as a new channel to later use it for protection. Go to Select > Save Selection.

Save Selection Window

The Save Selection window should pop up. Make sure the Document is set to the current document and the Channel is set to New. Give it a name and hit OK.

Channel Panel

New Alpha Channel

As you can see in the image below, Photoshop added a new Channel to the Channels Panel. We can now tell Photoshop to use this Channel as a mask to protect the important area. Make sure you deselect the image area by going to Select > Deselect (Command + D).

Protect Option

Select Channel

Photoshop identified our new Channel and lists it in the Protect drop-down menu. It’s set to None but since we want to keep the information of the Sail Boat, choose the Sail Boat Channel. Additionally, you can save multiple selections, which will be later listed in this drop-down menu.

Mask Result

Protected Content-Aware-Scaling

The boat looks fantastic. We resized our image to 60% and preserved the information, but now there’s another problem. As you can see in the image below, the island looks distorted. At this point, you should be able to solve this problem yourself. Create and combine multiple Masks to solve this problem. In most cases, you don’t even have to create Masks. Let’s take a look at other options of the Content-Aware-Scaling.

Content-Aware-Scaling – Option Bar

The option bar provides some additional features like positioning, skin-tone-protecting and more. We’ll use some of these options to make sure we keep important objects untouched. Here are a few details on these options:

  1. Reference Point Location

    By choosing one of the squares on the reference point locator, you can set the fixed point, which the image will be scaled around. We’ll leave it at the center position.

  2. Use Relative Positioning For Reference Point

    Activating this button allows you to specify a new position of the reference point in relation to its current position. In most cases, you can go with default settings.

  3. Scaling Percentage

    Photoshop maintains the Aspect Ratio by default, but if you want to change the percentage for the width and height, input your values here.

  4. Amount

    This option specifies the ratio of Content-Aware-Scaling to normal Scaling (100% Content-Aware-Scaling and 0% Normal Scaling.)

  5. Protect

    Here you can choose an alpha channel that specifies an area to protect.

  6. Protect Skin Tones

    The little person on the far right is the protect skin tones button, which tells Photoshop to pay attention to skin tones in the image.

  7. Cancel Transformation

    After resizing your image you can of course Cancel the operation.

  8. Commit Transformation

    Or, Commit the operation.

Compatibility

You can use Content-Aware-Scaling on images in RGB, CMYK, Lab and Grayscale color modes. As far as I know, Content-Aware-Scaling doesn’t affect adjustment layers, layer masks, Smart Objects or layer groups. As mentioned above Content-Aware-Scaling is a new feature available in Photoshop CS4 only.

Conclusion

This tutorial reviewed Content-Aware-Scaling feature: how it works, and how it can save you time when working on your future projects. Here is an excellent video that reviews Content Aware Scaling as well. You should definitely give it a try if you are using Photoshop CS4. You may also want to check out the links below for more information about new features in CS4.

Subscribe to the Psdtuts+ RSS Feed for the best Photoshop tuts and articles on the web.

  • http://laranzjoe.blogspot.com Lawrence77

    WOW!
    I’m the first…
    My long time dream comes true!

    • http://laranzjoe.blogspot.com Lawrence77

      2nd comment is also mine! :)
      and also first threaded comment! :D

      hi Kajik, your tips and tricks 1 and 2 posts are fine!

      I’m going to try Photoshop CS4 soon! :P

    • Germansn

      nice tuto….me gustaria que los tutoriales fueran en español :)

      bye

      • http://laranzjoe.blogspot.com Lawrence77

        Spanish are coming soon in Envato! :)

    • justin

      perhaps, but the 19th comment isnt yours.. its MINE! muahahahah!!!!

      • http://www.psdiv.net Underdog

        oh my god!!!

      • http://laranzjoe.blogspot.com Lawrence77

        @justin
        but the 36th comment is mine :)

  • Linus

    Lol,lawrence ;)

    • http://laranzjoe.blogspot.com Lawrence77

      thanks for your great smile Linus!
      thanks ;)

      • angah

        follew me

  • Catherine Tsapelik

    Thanks, usefull information.

  • http://constantinpotorac.com/ Constantin Potorac

    I find this tool very useful also for enlarging product background. Clients may want the same background but different size. Using this tool you wont have to rebuild the background but simply enlarge it and don’t lose quality. Great tool

    • Kajik
      Author

      Exactly. Content-Aware-Scaling is not only useful for scaling down images, you can also scale up your images while protecting important areas.

  • http://www.benbarber.co.uk Ben Barber

    Great Tutorial! looking forward to using it in the future.

  • http://franciscoandrade.com Francisco

    Excellent tutorial, this will be very usefull!

    keep going :)

  • http://clickapic.net spyece

    Sweet, this is one simple and cool tut. thanks for sharing.

  • http://home.ebmnet.ch/ourportfolio snyonz

    Its amazing what Photoshop can do.
    I love this Programm

    Nice Tut thanks

  • tru

    useful info. Thanks mate

  • http://www.regleszero.fr/index2.html shadeone

    this is a really cool feature, you’re right… but very heavy memory usage… i can’t use this with à 20mpix image, or 12mpix image with 4gb ram !!!
    maybe there’s something wrong in my config, but it seems to be cool for small pieces … :’(

    • Kajik
      Author

      Hi shadeone,

      Adobe designed new features to take advantage of your display card’s GPU (Graphics Processing Unit) to accelerate application performance. Try to update your display card’s driver, update DirectX, defrag your hard drive, close all other processes other than Photoshop and try it again. If nothing changed please check out the links below:

      http://www.adobe.com/support/photoshop/

      http://kb.adobe.com/selfservice/viewContent.do?externalId=kb404898

      I hope that helps.
      Bye

    • Bryan

      are you using a scratch disk? I only have 3 gigs of ram on my mac book pro, and i work with Huge images. The key is setting your performance preferences and using a fast scratch disk. I use a GRAID2 raid level 0 for my video editing as well as my primary scratch disk. It helps tremendously. Try it out and see if it helps.

  • giovinco

    thanks

  • rickeffe

    Free and older alternatives:
    http://code.google.com/p/seam-carving-gui/
    Gimp -> Liquid Rescale plugin

  • http://www.renzojohnson.com Renzo

    Photoshop CS4 runs fast on my old powerbook (faster than CS3). As per illustrator, I would say it is many times faster in cs4. This is a Powerbook 1.5GHrz 1gb Memory.

    I would be cool if PS get some support for 360 degrees stitching. To create some VR interfaces. (Ala Quicktime VR)

  • http://www.regleszero.fr/index2.html shadeone

    thanks for the help.
    i’ve allready the latest nvidia drivers installed, and use a 8800GTX 512meg, listed at adobe website.
    but i still have the problem. don’t know how to get rid of it.
    I’ll switch to vista 64 to increase my RAM > 6Gb maybe it will help a bit…

    • http://mrp19.deviantart.com Rian

      hmm..i’m using Nvidia 9600GSO(384mb) and i don’t have a problem..maybe you can uninstall your driver then install it again(fresh install) with newest driver..hope that helps.

      ps: sorry bad english

  • http://laranzjoe.blogspot.com Lawrence77

    Hai
    (kajik) KMKDesign, what is your system configuration?

    • Kajik
      Author

      Hi Lawrence77,

      I’m currently working with my Notebook: Core 2 Duo, Vista, 4GB Ram and Nvidia 9600GT. My Photoshop settings are set to default, except for a few little changes.

      • http://laranzjoe.blogspot.com Lawrence77

        Oh thanks! :)
        I love to collect this type of infos!
        my RAM iis 2GB only! :(

      • Kajik
        Author

        Some features in CS4 are not necessarily required like the Zoom or smoother Hand moving feature. You can turn features like these off or increase the memory usage to improve the performance.

      • http://laranzjoe.blogspot.com Lawrence77

        Thanks Kajik (kmkDESIGN)!
        But i’m not a expert in Photoshop! :)

  • Waasys

    Nice but I’m using chanels with this option, anyway nice! thx!

  • http://www.jadgraphics.net/blog Jad Limcaco

    Wow, great tutorial. I never heard of this before.

  • http://www.xqlusive.nl xQlusive

    Nice tut..

    We only need to upgrade from CS3 :S

    • http://www.graphicriver.net/user/hansv Hans Vargas

      me too……

    • http://www.psdiv.net Underdog

      me too……

      • Francis Boudreau

        and me too…..

    • http://laranzjoe.blogspot.com Lawrence77

      me too :D

      • wexx

        Well I have to say ME TOO! :D
        But do you guys know if it’s actually worth the extra money if you compare it to CS3?

        The upgrade will cost me almost 475 euros, but I just can’t tell if those new features are really as usefull as they seem to be.
        In the advertisment I’m pretty impressed by the 3D painting and compositing possibilities but to be honest, these 3D possibilities were also available in CS3 but I never dared to use it in any of my commercial projects.

  • http://www.dsaportfolio.com.br/ Diego SA

    I need to try it!

  • tibô

    THX usefull tool

  • Pingback: How to Use Content-Aware-Scaling in Photoshop CS4 | DeanWorks

  • Jonathan

    Content aware scaling is mind-blowing.

  • Pingback: De Web Times - Share Your Resources » Blog Archive » Photoshop Tutorials and Effects

  • http://www.photoshopdersler.net Umut Yurtseven

    Here you can see this tutorial in video (: Also you can listen but it’s a Turkish web site about video tutorials.

    http://www.photoshopdersler.net/cs4-videolu-photoshop-dersleri/125-icerigi-koruyarak-boyutlandirmak.html

  • http://ttutorials.blogspot.com NB

    nice guide!

  • Pingback: Photoshop Friday 032709 | Big Sexy Media

  • Juvet

    Good Tutorial!

  • http://www.logicdesign.co.uk Keith

    That is outstanding, mabe time to buy cs4!

  • http://www.twenstudio.com TwenStudio

    Nice Tutotial My Brother

  • http://www.samburns.com.au Landscape Photography

    wow, nice feature that I wasn’t aware of, thanks for the tips.