Algonquin College Graphic Design Program Computer Graphics Course Curriculum Algonquin College Graphic Design Program Computer Graphics Course Curriculum

Conditional Actions

Apps Used: Adobe Photoshop

You're aware of Actions in Photoshop. Did you know you can create if/then statements which setup conditions before an action is run?

This is a formative assignment

That means that you'll be learning and practising new software skills. This assignment contributes to your final grade in the course. This work will be graded as either:

Complete Incomplete

If needed, I will provide written feedback on your performance.

Topics

Why Conditional Actions

Imagine that you have hundreds of varied images. Then imagine that you’re tasked with editing only the ones which have a certain characteristic. Finding only those images would be very tedious. You could also overlook some images. Well, Conditional Actions let you build workflows that choose what to do based on one of several available conditions. This means you could target only the desired images based on that given characteristic.

How They Work

How hypothetical situation has us converting only RGB images to CMYK for production. We’ll feed Photoshop a folder of photos that are a mix of colour modes. The action will convert the colour mode of only the RGB images to CMYK. The others will be left un-touched. Greyscale images can be placed in a document for print, so we can leave them alone too.

To use Conditional Actions, you need to first record the workflow you want to use on the images. In our case, we’ll record a Convert to CMYK workflow.

photoshop-conditional-actions-new-action

All we need to do is go Image > Mode > CMYK, then save and close. Don't forget to stop recording. Now we have an action to run with conditions in the next step.

Convert Colour if…

To apply the workflow to only RGB images, we record a new action. Let’s call it IF RGB Convert to CMYK. Click OK. Choose Insert Conditional from the Actions panel menu.

photoshop-conditional-actions-add

In the Conditional Action dialog box, choose a condition from the If Current menu. Choose actions from the Then Play Action menu and the Else Play Action menu, and then, click OK.

photoshop-conditional-actions-options

You can also choose None in one of the menus, but not both. You can run an action only if a particular condition is false by choosing None as the Then Play Action and choosing the desired action as the Else Play Action.

In this case, only images which are in RGB mode will be affected.

Now we need to feed Photoshop our folder of photos. To do so, we’ll use File > Automate > Batch…

Testing the opposite of what’s in the condition

There might be instances when you want to test the opposite of what’s in a condition.

For example, suppose you want “Action 1” to play when when the frontmost document is non-square. You would specify the conditional: “If Current Document is Square, Then Play Action None, Else Play Action “Action 1.”

To test for the opposite of a particular condition, swap the “Then” and “Else” actions.

Formative Activity

Apply a watermark on the provided photos based on their orientation. Use the provided watermarks. We’ll have the conditional actions apply the portrait watermark to the portrait photos and the landscape watermarks to the landscape photos.

photoshop-conditional-actions-rulers

Remember to record your action with your rulers set to Percentage. This will make the watermarks scale to the same percentage of the canvas, making the size of your watermark more consistent.

watermarked-portrait-landscape

Save them all into the provided folder called watermarked-images.

Supplemental Links

What you'll submit:

Instructions

Once you've completed your work, save and close each document. Rename the provided assignment folder as LastName-FirstName-Group-Nº-Assignment-Name. So,

Appleseed-Johnny-1-Conditional Actions

Right-click, then choose Compress... to create a zip file for submission. So...

Paradis-Alain-1-Conditional Actions.zip

The zip file is what you submit.

Failure to submit your files as directed will incur a proportional loss of points. If your file/folder is not named with your name, you will earn a zero. Why?