Workflow is an iOS app that brings powerful automation features to the iPhone by connecting different apps and actions. So far in this series I’ve covered:
- The basics of using Workflow.
- How to use variables in Workflow.
- Accepting user input and working with control flow in Workflow.
This tutorial will be building on the things covered in the previous tutorials so it’s important that you’re either familiar with Workflow or have read them before you continue.
In this tutorial I'll examine one of Workflow’s best features: automated photo editing. You can crop, resize, combine and do more with images. Seeing as the iPhone is the most popular camera in the world, these features are particularly useful.
An Example Workflow
In this tutorial I'll build a general purpose image editing/uploading workflow. Using control flow, I’ll have one workflow do many different things. It’ll accept an image and then allow simple adjustments to be made, has the option to resize it to a variety of different sizes, apply a watermark, upload it to the social network sites of my choosing and save it to the Camera Roll.
This sort of action really demonstrates how different tasks can be easily accomplished with one workflow.
Building the Workflow
Before starting, you need to create a simple watermark. You can see mine below. The simplest thing is to create a PNG file with your name.
Ideally, you want the background to be transparent. Save the image to the iPhone you’re using and create a new album called Watermarks. Add the image to the album.
Once the watermark is set up, get started on the workflow. Create a new Normal workflow give it a name such as Photo Processing.
Pull in the watermark so it’s available to use later. Add a Find Photos action. Add a filter and set it to the album Watermarks.
Next, pull in the actual image for editing.
Add a Select Photos action. Also add an Edit Image action. They’re both in the Photos & Videos category.
Next to resize the image. Add a Choose From Menu action. It’s in the Scripting category.
Add an appropriate Prompt and the number of resize options you want. I’m going with 1200px and 600px. I’m also adding Don’t option in case I don’t want to change the resolution.
Under the first option, add a Resize Image action. Set the Width to the appropriate value. Repeat the process for the other menu options. Leave the Don’t one blank.
Add the Watermark. I want the option to add one or not, depending on where I’m sharing it so I'll add another Choose From Menu action. The two options should be Yes and No.
Under the Yes option, add an Overlay Image action.
For the Variable, use the Magic Variables option to select the first Photos variable. Ensure Show Image Editor is ticked as this will allow you to reposition, resize and change the opacity of the watermark.
Leave the No option blank. Now is a good time to test the workflow to ensure it is working correctly. Run it and select a test image. If everything works, keep going.
If not, troubleshoot and ensure you’ve followed the steps correctly.
The workflow is working perfectly so an action needs to be performed on the final image. The first thing to do is save it so add a Save to Photo Album action. You can pick an Album or just leave them save to the Camera Roll.
Finally, add some more Choose from Menu actions with Yes/No options. Add one of these for each social network you use. I’be added one for Facebook and one for Instagram.
Under Yes on the post to Facebook option, add a Post on Facebook action. Under Yes on the post to Instagram option, add a Post on Instagram action.
You’ll find both under Sharing. Once again, leave the No options blank.
And that’s it. The workflow is done, run it to make sure everything works okay. As you can see, there are a lot of options within it. You can edit an image, add a watermark and post it to Facebook, or just resize it and save it to the phone.
Workflow is really powerful and one of the best ways to take control of your iPhone.
Without Workflow, the steps in this action would have involved a few different apps, multiple saved copies of the photo and so on. With Workflow, it’s a simple one-click solution to most photo processing needs.
Subscribe below and we’ll send you a weekly email summary of all new Computer Skills tutorials. Never miss out on learning about the next big thing.Update me weekly
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!Translate this post