preview

Batch Editing and Automated Processing in Photoshop

Jan 13th in Photo Effects, Tools & Tips by Alvaro Guzman

Hi everyone, this time I'll show you some of the basics of Photoshop's Automate options and some practical applications. We'll create a complex action, build a Droplet with it and batch edit a folder with pictures. Then we'll create a custom web photo gallery. Let's get it started!

PG

Author: Alvaro Guzman

I'm Alvaro Guzman from Bolivia, Web developer and Graphic designer. For me digital design is a modern form of art, which allows me to explore innovative techniques, and helps to deliver a clear message to the public.My work covers advertising, corporate image, print design, and web design areas. I am currently the Design Team Leader of SouthMakers. And you can find me on Twitter @alvarocker.

Part I - Creating the Action

Final Image Preview for Part I

Let's take a look at the gallery we'll be creating. Click the screen shot below to view the web photo gallery. As always, the tutorial files are available via our PSDTUTS Plus membership.

Final Click

Step 1 - Let's Get it Started

Since not every Photoshop user is a graphic designer, neither a web developer, there's a lot of people who need graphic tools that can make their life easier. If you're a photographer, or a webmaster, maybe this is the right tutorial for you.

This time we're going to build a custom web photo gallery in a blink of an eye, are you ready? First, put all the pictures you want to include in the gallery into a folder anywhere in your system. Then open any of those pictures, we'll use them to create the Photoshop Action Set to batch edit the folder later.

Step 2 - Set up the Action

Now start with the action. First open the Actions Window, go to Window > Actions or hit Option + F9. Then click on the tiny folder icon to create a new Action Set, name it "PSDTUTS."

Once you have created the set, create a New Action by clicking the little folded sheet on the Actions window. Name the new Action "Vintage Halftone." Once you have finished, you'll notice that there appears three small icons, Stop, Record and Play. These are the Action controllers. Ensure the Record option is selected an go to the next step.

Step 3 - Resize the Picture

Now we'll build the action. I will explain what you should and what you should not do when working with actions on each step; you must be very careful when doing each step as is, otherwise the result will be different. Once you have opened your picture, and ensured the Record option on Actions window is selected, you can start recording the steps.

The first one will be resizing the image. Since all our pictures will become a web gallery we need to reduce them a lot, for this go to Image > Image Size and set the Width value to 700px, check the Constant Proportions options to keep the image's aspect ratio. Also, check the Resample Image option and select Bicubic Sharper, which is best for image reduction.

Do not resize the image by other methods, like Free Transform, because the math applied resizing the image is hard coded, and it will only work for similar images, e.g. it doesn't work for a vertical picture. Hit OK and go to next step.

Step 4 - Duplicate the Image

Now, a useful step on each complex action process is Reset Swatches. Do this just by pressing D key on your keyboard. Do not change the swatches using the color picker. Then double click on the "Background" layer in the layers palette to make it editable, drag and drop the layer miniature over the Create a new layer icon, this will duplicate the layer. Ensure that the "Layer 0" copy is selected and go to next step.

Step 5 - Add a Diffuse Glow

As "Layer 0 copy" is selected we'll going to add a Diffuse Glow filter to it, to increase the lights and add a dramatic look to our image. Go to Filter > Filter Gallery and select Distort > Diffuse Glow filter. Set the values as shown below and click OK.

Step 6 - Change Opacity and Merge Layers

Now we'll move down the "Layer 0 copy" opacity a little bit, for this enter an Opacity of the desired value (75% in this case) and hit return. Do not use the slider to change the Opacity value, because you'll record a step for each percent stage 100, 99, 98, 97 ... 75 and we don't want that. Next, Shift + Click on the "Layer 0" miniature, then Command-click (or right-click on the PC) and select Merge Layers. Your resultant layer must be just "Layer 0 copy."

Step 7 - Gaussian Blur Filter

Duplicate "Layer 0 copy" by dragging its miniature over the Create new layer icon, which will create a new layer called "Layer 0 copy 2" just above "Layer 0 copy." Ensure that "Layer 0 copy 2" is selected and go to Filter > Blur > Gaussian Blur, set the radius to 2 pixels and click OK.

Step 8 - Change the Copy's Blending Mode

Change "Layer 0 copy 2" Blending mode to Overlay, do not switch on blending modes because Photoshop will record each try you've made, go directly to Overlay. If you want to try this with different blending modes options click on the Stop button in the Actions window, select your favorite blending mode, then Edit > Undo until you're back at the last recorded step. Next, click on the Record option again to go directly to your desired blending mode. Finally, set the Opacity value to 70%.

Step 9 - Create a Fill layer

Now, let's add a black background to our work. For this, go to Create New Fill or Adjustment Layer > Solid Color, set #000000 on hexadecimal color and hit OK. This will create a full size fill layer, then click and drag the "Color Fill 1" layer and place it below the "Layer 0 Copy" in the layers palette.

Step 10 - Add a Layer Mask

Then click on "Layer 0 copy" miniature and go to Layer > Layer mask > Hide All.

Step 11 - Select Layer mask

Now we're going to create an irregular border on our picture. Once you've created the layer mask, you must click on its miniature, then create a full selection by pressing Command + A on your keyboard. This is a critic step, if you don't click on the Layer mask's miniature, the result will become ugly at the end.

Besides you must Select All; you can not use the Marquee tool and make an arbitrary selection. If you do that, Photoshop will store the coordinates as hard numbers only for a single picture, and it doesn't work on any other.

Step 12 - Transform the Selection

Now go select the Marquee tool in the Tools palette. Command-click and choose the Transform Selection option. Now the selection will appears with the free transform shape, but don't transform the shape itself. Check on the top panel there're two values W and H (these are Width and Height and must be on 100%). Click on the little chain in middle of both values and change the value of any of them to 95%. This way you'll be reducing your selection shape by 5%. Now hit Return twice to apply the transform.

)

Step 13 - Create an Irregular Border

Here's where the irregular border takes shape. Check that your selection is a square and a few pixels away from the border. Also, ensure that "Layer 0 copy's" layer mask is selected. Then go to Select > Refine edge, and set the values of the image below and then click OK. At this point you should have an irregular selection like the bottom of the following image. If you're working on a different size of image, you should play a little bit with Refine edge's values to obtain a good effect.

Step 14 - Fill the Selection

Now let's fill the selection with white. First hit the D key to reset the Swatches, then select the Marquee tool in Tools palette, Command-click anywhere over the selection to see the options, and click on Fill... option. In the dialog set Contents to Use as Foreground Color, Mode as Normal and Opacity as 100%. Finally, hit Command + D to deselect the selection.

Step 15 - Duplicate Actions

Now let's repeat the irregular border process (Steps 10 to 14) but this time "Layer 0 copy 2" layer. You can just repeat the previous steps or duplicate them in the Actions window. To duplicate the steps, first Select "Layer 0 copy 2" layer in the Layers palette and TOP the action after that.

Next select (in the Actions window) all the steps involved on the border creation process, that means from the "Make" step, after selection "Layer 0 copy" layer, until the "Set Selection" step, just before Select "Layer 0 copy 2" layer.

Select all those layers by Command or Shift-clicking on them, then go to the advanced options and select Duplicate, by doing that all your selected steps will be duplicated just below the last step ("Set selection"). Now just drag and drop the selected actions below the "Select 'Layer 0 copy 2'" step. Finally, click on the last step in the Actions window.

c

Step 16 - Halftone Pattern

Next, click on the Layer mask's miniature of "Layer 0 copy." Next, go to Filter > Filter Gallery, and browse to Sketch > Halftone Pattern and set the values shown below, then hit OK. This process will apply a Halftone Pattern on the layer mask.

Step 17 - Add a Photo Filter

Next select the "Layer 0 copy 2" in the layers palette, and then go to Create New Fill or Adjustment Layer > Photo Filter, select Color Option (#957345), and set Density to 100%. Then just hit OK.

Step 18 - Hue/Saturation Adjustment

Following, create a New Fill or Adjustment Layer > Hue Saturation, set the values shown below and hit OK.

Step 19 - Fill a New Layer

In the layers palette, create a New layer, ensure the new layer is above all the others. Actually, it's the first layer we've creating so it supposed to have this name: "Layer 1." Hit Command + A to make a full selection, then select the Marquee tool, Command-click and choose Fill... use Foreground color to fill the selection with black.

Step 20

Next add to "Layer 1" a Pattern Overlay effect. I'm using "Gray Granite" from the Grayscale Paper preset.

Step 21 - Rasterize the Layer Effect

Following create a new layer, then Shift-click "Layer 1" in the layers palette to select both layer, and hit Command + E to merge them.

Step 22 - Change texture layer's blending mode

Now change the "Layer 2" Blending Mode to Multiply and Opacity to 75%.

Step 23 - Flatten the image

In the layer's palette, select "Layer 2" and Shift-click on the "Color Fill 1" layer. This way you'll be selecting all the layers. Then, within the layer's palette options, select Flatten image. Finally, in the Actions window, click on Stop. And that's it, now we have a custom action ready to run.

End of Part I - Test Your Action on Different Images

Now it's time to test if your action works properly on other pictures. Try to use it on wider or taller images. If you followed the simple rules of the previous steps, there'll be no errors. To re-apply the action on another image, just open the image, select the "Vintage halftone" action and press the tiny Play button.

Before moving forward, it's a good idea to save the action itself. For this Select the "PSDTUTS" action set in the Actions window, then go to advanced options (the tiny list at the top right of the actions panel) and select Save Actions... write a name for your action set and save it anywhere you want. Now we're ready for batch editing.

Part II - Batch Editing

Step 1 - Create a Droplet

A droplet applies an action to one or more images, or a folder of images, that you drag onto the Droplet icon. You can save the droplet anywhere you want and reuse it as many times as needed. To create a Droplet, go to File > Automate > Create droplet... a dialog window will appear. There you can choose many options.

First choose your original pictures folder and save the droplet there. On Play options select the "PSDTUTS" action set and Action of Vintage halftone. On destination select Folder and choose a different folder than the original pictures' folder. In this case, I'll call it "vintage pictures."

Besides, you can customize the names of the resultant images by adding custom text, series of numbers, extensions and maximize compatibility. Once you've set up your custom droplet, click on OK. As you can see at the bottom of the following image, I've created a droplet in a folder with many pictures in it.

Step 2 - Make the Droplet Work

Now open your images' directory, select and drag the images you want to edit onto the droplet icon. You'll see that Photoshop is auto-editing all the pictures one by one and saving them into your selected destination folder. Finally, open the resultant images' directory to see how they look.

End of Part II

At this point, you have a nice collection of vintage halftone pictures, ready to print if you want to, or ready to upload them into a blog, or Flickr, or anywhere. But we'll move a step forward, we're going to create a custom web photo gallery with our vintage pictures using only Photoshop.

Part III - Web Photo Gallery

Step 1 - Select the Template

Photoshop CS3 has the Web Photo Gallery feature, by using this we can create complex HTML or FLASH galleries in minutes. Let's give it a try. First, we need to open the Web Photo Gallery window. For this, go to File > Automate > Web Photo Gallery... When the window is open you'll notice there's three important fields to customize.

One of which is Styles. There you can change the look and feel of your web gallery and the contact email. Two is Source Images. There you may select the source files and the destination. The third is Options, which depending on the Style, you can customize several features of the gallery like background and foreground colors, images' and thumbnails' width and height, and security options.

First, we're going to change the style. I'm choosing "Flash Gallery - 1" (I'm using Photoshop CS3 extended by the way) because it's a beautiful and full customizable web gallery. You can add an e-mail as well. For now, do not click anywhere and go to next step.

Step 2 - Select the Source and Destination Folders

Go to the Source images section, select Use as Folder and browse your system until you find the "vintage pictures" folder created in Step 1 of Part 2. For destination, browse your system, create a new folder anywhere and name it "vintage gallery."

Step 3 - Customize Your Gallery

Now it's time to customize the visual aspect of your gallery. Start by selecting the Banner option, write a title for your gallery and add some contact info as well. Then select Large Images option and set the full view width and height, also set the JPEG quality and the Titles of each image.

On Thumbnails option customize the maximum size of the thumbnails. On custom colors, set these values: Background of #000000, Banner of #000000, Text of #DEC8A1, Active Link of #DEC8A,1 Link of #FFFFFF, and Visited Link of #EBDABE. Finally, for the Security Option we're going to add a Custom Text as a watermark. Once you've finished the customization process, hit OK in the Web Photo Gallery window and let Photoshop do the hard work. In a matter of minutes your gallery will be ready.

Conclusion

Photoshop's Automate options are great time savers and a must know feature for designers, webmasters and photographers. Try this tutorial with your own pictures and have fun!

.

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


Enjoy this Post?

We'd love your vote!

Plus Members

Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.

Join Now

User Comments

( ADD YOURS )
  1. PG

    Gago January 13th

    pretty cool, good job.

    what im the first.

    ( Reply )
  2. PG

    Blaze January 13th

    Great tut as usual! Really time saving!

    ( Reply )
  3. PG

    Michaël January 13th

    Good tutorial, might come in useful later on :)

    ( Reply )
  4. PG

    BroOf January 13th

    This is for sure useful. Nice tutorial.

    ( Reply )
  5. PG

    Rachelle January 13th

    Those functions have saved my life sometimes when I was doing production work. I’m glad you did this tut…it’s very useful!

    ( Reply )
  6. PG

    J January 13th

    I would stop in step 15.

    ( Reply )
  7. PG

    Trond January 13th

    Totally agree on stopping in step 15..

    but nice tut!

    ( Reply )
  8. PG

    loswl January 13th

    Excellent tut, very useful :o )

    ( Reply )
  9. PG

    Jhay January 13th

    Great tutorial! Thanks for sharing

    ( Reply )
  10. PG

    Alvaro January 13th

    @ J and Trond: I was thinking stop on step 15th, but I wanted to show how to add an advanced filter, adjustements layers and patterns to create a really complex and “hard to do” action.

    Anyway @all: you can stop on step 15th :D

    ( Reply )
  11. PG

    albaro January 13th

    esta bueno el tutorial

    ( Reply )
  12. PG

    Timothy January 13th

    My God! This is good to know. Thanks! Delicioused

    ( Reply )
  13. PG

    starlight86 January 13th

    wow..this is very nice..thx for sharing

    ( Reply )
  14. PG

    Alexis January 13th

    Bear in mind that they removed the Web Photo Gallery in CS4. You can download it as a plugin here though:

    http://help.adobe.com/en_US/Photoshop/11.0/WS4B2B82C2-F8F7-4464-AB29-EFE7FDDDB109.html

    ( Reply )
  15. PG

    afrix January 13th

    great effect :O i like it, well done :)

    http://afrix99.deviantart.com/

    ( Reply )
  16. PG

    Ricardo Ortiz January 13th

    Wow… great tut!

    ( Reply )
  17. PG

    Brett Carel January 13th

    Excellent tutorial. Actions and droplets are great for hundreds of different uses!

    ( Reply )
  18. PG

    Kevin January 13th

    Great article, but I have one amendment…

    Instead of using the “Image Size” adjustment for an action, try using “File > Automate > Fit Image…”. This let’s you define a size the image should fit into (ie, 700×700px). Then you can let the Action work on both vertical and horizontal images and the longest dimension will be 700px.

    Happy ’shopping!

    ( Reply )
  19. PG

    jellyBelly January 13th

    Would like to see some batch instruction for “save for web” included for doing galleries with web optimized photos. always seems to be an issue doing save for web as batch process.

    ( Reply )
  20. PG

    Mr. Smith January 13th

    Nice, I learned a few things here. I use actions, but have never used the automate features. Pretty cool stuff! Thanks.

    ( Reply )
  21. PG

    Vasily January 13th

    I will try it out tonight. I knew a few things about automating in PS, but this sheds a lot of light onto the subject. Thanks a bunch!

    ( Reply )
  22. PG

    Dennis January 13th

    Thanks mate, nice tutorial! :)

    ( Reply )
  23. PG

    Ryan January 13th

    Thanks a ton! Really needed this!

    ( Reply )
  24. PG

    bryan January 13th

    Nice tut! Using actions and droplets can literally save hours upon hours of work into less than a few minutes. Thanks for sharing

    ( Reply )
  25. PG

    tarazz January 13th

    what an amazing tutorial, but something is wrong with my ps so droplets don’t work, oh well i can always use the automate->batch :)

    ( Reply )
  26. PG

    VertigoSFX January 13th

    Nice tips…a lot of people don’t know that Photoshop is capable of doing things like this. I’m a 19 year old aspiring designer working at a web design company and they had no idea you could do batch editing in Photoshop…they were always going to another program to to things like this. Now they know :)

    ( Reply )
  27. PG

    insic January 14th

    Alvora always giving us a really nice tips in photoshop. thanks and keep it up.

    ( Reply )
  28. PG

    Joefrey Mahusay January 14th

    Thanks for the great tips alvaro! Keep it up!

    ( Reply )
  29. PG

    Ronnie January 14th

    Thx for the tut. But I would stop in step 15, too.

    ( Reply )
  30. PG

    gyvulius January 14th

    I love Alvaro’s works, they are pro. Good Job!!

    ( Reply )
  31. PG

    ArtBox7 January 14th

    That’s a really detailed tutorial ! Thanks!

    ( Reply )
  32. PG

    Steve Forbes January 14th

    Awesome tutorial, didn’t know about batch editing. Very useful! :)

    ( Reply )
  33. PG

    SOSFactory January 14th

    This is a nice tutorial, we can always learn new things.

    I liked this one :)

    ( Reply )
  34. PG

    Alvaro January 14th

    thanks guys :D

    ( Reply )
  35. PG

    Jooeeeyyyy January 14th

    Wow. I really learned something here. Thanks!
    Old School Windows for the win!

    ( Reply )
  36. PG

    Mana January 15th

    Thanks mate… and I’m happy you kept going past step 15, always nice to pick up some new tricks… and easy to follow as well, cheers!

    ( Reply )
  37. PG

    markokaup January 15th

    Thank you for this! Automation tutorials was usefull.. :)

    ( Reply )
  38. PG

    Lucky January 15th

    Actually, I didn’t know about this. Thank you for the tutorial. I’ll try it out sometime.

    ( Reply )
  39. PG

    aNDRéS January 15th

    Alvaro: GRACIAS, cuánto tiempo invertido en hacer que a los demás se nos ahorre el tiempo de trabajo =)

    ( Reply )
  40. PG

    Chris Campbell January 15th

    Would it be inappropriate to tell you that I love you?

    ( Reply )
  41. PG

    fm January 15th

    Grate post. Thanks for the help.

    http://theflashwebgallery.com

    ( Reply )
  42. PG

    Alvaro January 15th

    @Chris Campbell: LOL XD

    ( Reply )
  43. PG

    John January 15th

    Great tutorial, but when i drag the images onto the droplet and it runs through the action it always propmt a “Save As” window. wont auto save and close? any ideas?

    ( Reply )
  44. PG

    John January 15th

    Got it too work with PNG images (auto save and close).

    ( Reply )
  45. PG

    maryam January 16th

    thanks really good tututorial

    ( Reply )
  46. PG

    Raul Sosa January 16th

    Claro, consiso y concreto, muy bueno!
    Me ubiera encantado que lo ubieras escrito en nuestro idioma. Buen trabajo

    ( Reply )
  47. PG

    lover January 17th

    any way think you very much for this just i want from you to say yes

    say it it .good iam starting in the photosho and i want to become professional l want from you and any one has xperence to send to me lesson on this mail hamed991@hotmail.com

    ( Reply )
  48. PG

    Gabriel January 18th

    Great tut. and nice u used my pict of the sunflowers

    ( Reply )
  49. PG

    crystalprocovers.com January 19th

    I’ve using Phothoshop for years, but i never use so much tools for editing one photo :P
    you’re pro man…. nice tutorials

    Maybe i can use your tutorial for my minisite design :>

    ( Reply )
  50. PG

    Carte January 19th

    good job.
    But to create a perfect ps action you should give a layer a specific name after creating one. So your action will be working with other language versions.

    ( Reply )
  51. PG

    xar January 19th

    amazing bro

    real y ican’t iliustrate how amazing it was

    thanks alot

    ( Reply )
  52. PG

    Brock January 19th

    @ John,
    you need to check the box (override Action “save as” commands)
    then you wont get the save pop-up windows

    ( Reply )
  53. PG

    L January 20th

    Is there a “refine edge” in photoshop CS2? When I do Select >, I don’t see that action anywhere, am I missing it?

    ( Reply )
  54. PG

    Hems January 22nd

    Hey,

    its just outstanding.
    awesome work done!

    Cheers…

    ( Reply )
  55. PG

    eddie yang January 31st

    nice job,man.

    ( Reply )
  56. PG

    LBrother February 8th

    Wow! For me, this is one of the best tutorials on PSDTUTS. It’s not just imitating the image of the tut. You really can learn something about Automate functions.

    Alvaro, you’re my favorite writer on the web! Go on!

    Greets,
    LBrother

    P.S.: btw your new interface tut is awesome too

    ( Reply )
  57. PG

    Alvaro February 8th

    @LBrother thanks man!

    ( Reply )
  58. PG

    amit February 9th

    its great pleasurte for learning real y ican’t iliustrate how amazing it was

    ( Reply )
  59. PG

    Skinnybobb February 10th

    Nice one mate! The flash photo gallery is a little gem that was hiding away. It says thank you for lettng it out of the box. :)

    ( Reply )
  60. PG

    RAJAT February 15th

    very intresting and helpfulllllllllllllllllll

    ( Reply )
  61. PG

    Lozil February 23rd

    Thats one Awesome tutorial Pal…. :)

    ( Reply )
  62. PG

    emba February 27th

    Great…u are good

    ( Reply )
  63. PG

    Web Buttons March 21st

    Great tut! Gotta love batch processing.

    ( Reply )
  64. PG

    Kieron April 26th

    Great tut thanks!

    But I have one prob. I’m trying to batch convert a folder full of eps and ai files, but all output png images are being resized to an equal width and height. It’s not containing the original ai/eps proportions. I can’t figure this out. Can someone help me please?

    ( Reply )
  65. PG

    Kieron April 26th

    Ok I managed. Had to include the open command too in the actions list. Thanks anyways and great designers resource keep up the good work.

    ( Reply )
  66. PG

    Shlomit August 19th

    very usefull tutorial

    ( Reply )
  67. PG

    diantokam September 12th

    Thank You, very usefull :)

    ( Reply )
  68. PG

    Marcel Müller October 11th

    You rock, Alvaro! :)

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    October 11th