MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
going
Search

How To Resize Photos With a Shortcut On Your iPhone or iPad

Friday November 25, 2022. 05:00 PM , from MacMost
If you want to share a photo from your Photos Library or a file on your iPhone or iPad, you can use this Shortcut to resize it and convert it first. A very simple Shortcut can be used to do it for one photo, and a slightly more complex one can do it for multiple photos.



Check out How To Resize Photos With a Shortcut On Your iPhone or iPad at YouTube for closed captioning and more options.
Video Transcript: Hi, this is Gary with MacMost.com. Let me show you how to create a shortcut on your iPhone to resize photos.
MacMost is brought to you thanks to a great group of more than 1000 supporters. Go to MacMost.com/patreon. There you can read more about the Patreon Campaign. Join us and get exclusive content and course discounts.
Now here's a topic I've talked about before but this time let's do it in iOS 16. Suppose you want to export some photos from the Photos App and you want to do it at a certain size and format and then you want those to go right to a Mail message or Save as files or Share in some other way. Let's go to the Shortcuts App and then we're going to create a new shortcut here. We're going to name it Resize Photos. Now let's add an action here and search for the action Resize. We'll just go right for the main thing we want to do. We find Resize Image and we'll add that. We could see it's going to take the first parameter, image. We'll tap on that and we'll say we want the Shortcut Input. Then we'll tap on Receive Any and we'll change Any to Just Images. Now we're going to change From, instead of Nowhere we're going to say Show In Share Sheet. So we can share a photo and we'll go right into the shortcut.
Now Resize is going to take that Shortcut Input and set it to a size of 640 wide by an automatic height that keeps the aspect ratio the same knowing that it is 640 wide. We can tap on 640 here and we can change that to Ask Each Time. So that will actually prompt us for the width so we can type whatever we want. 100 pixels, 240 pixels, whatever we need for that situation. Now that we've got the right size let's add another action. Let's search for Convert. We'll find Convert Image. So let's add that next and it will automatically pickup the output from the last action, the resized image, and convert it to JPEG. We can tap here and select another format if we want or have it ask each time if we really want. We can also tap here and change the quality and whether or not we want to preserve metadata for this photo. So if you don't want location information to come with the new image you can turn this off.
So now that we've taken this image, resized it, converted it to JPEG we want to share it again. So even though we started this whole thing by sharing we want to go back to Sharing. So I'm going to tap here and search for Share and just use the Share action. That's going to pickup the output from Convert. Using the Share Action allows us to do a variety of different things with the results of this Shortcut. For instance we can send it in an email, a text message. We can Save it to a file. We can send it right back to the Photos App. All the things you would normally find in the Share Sheet.
So that's it. This is a really simple shortcut here. I'm going to tap Done and we can see it right there. If we want to go back in and then tap up here we can set the icon to something more appropriate. I use the little camera icon there. Then I'll set it to a color that is easier to spot. Done. So now we've got that in Shortcuts. Let's go over to the Photos App.
So in the Photos App I'm going to go into a photo, like this, and I'm going to share it with the Share button at the bottom left. Then I'm going to look for the Resize Photos shortcut I just created. You could see it is going to ask us for the width, just like we wanted. So we'll do something small here. Say 100 pixels. Then it is going to finish the conversion to JPEG and now we're back at the Share Sheet. So now we can do what we want with it. Do we want to AirDrop it? Send it by a message? Send it by email? Save it back to the Photos App or Save it to Files. As a quick way to see what we've done let's tap Mail here. We'll start a new message and you can see that image there. It's rather small because it is only 100 pixels wide.
Now one of the problems with this Shortcut is it will only work for one image at a time. We can't feed it multiple images. But if we make the shortcut a little more complex we can add that functionality. So let's go back into Edit it in here and let's look for Repeat. We'll select Repeat with each. Now we want to move the Share Action after the Repeat. We want to move the Convert and Resize into the Repeat. Like this. Then we need to adjust everything. So we want to Repeat with each item in and we want to set that to the shortcut Input. So Repeat through all of the images that were sent in. Then Resize, instead of going to look at Shortcut Input, is actually going to look at the Repeat item. So every item as it goes through the loop. Then Convert here is going to take that Resized Image and now the end Repeat comes. So every time it goes through this it is going to create a new Resized Converted Image and add it to a list that will leave the Repeat Loop and then go to the next thing which is Share. So we want to switch from Converted Image here to instead the Repeat results.
Now if we run this now it's going to ask us for the width for every image we pass in. So we select 3 images and it will ask us three times for the width. Which might be good if you want to have a different width for each image. But if you want to have the same width then the way to do that is to ask before we go into the Repeat Loop. So I'm going to search for Input and then look for Ask for Input. Now I want to move that up to the top just before the Repeat Loop starts. So it is going to ask for what. Not text. We want a number and then with the prompt. So we'll put something like Width. Then we can tap on this little button here and set a default number. Let's do that. Set 240 as the default. We don't need to allow decimals and we don't want to have negative numbers for this. So Done. So it is going to ask for the width.
Here where we have the size we have this Ask Each Time thing for width. We want to clear that out and instead we go in here and we say Select Variable and we're going to use the provided input that comes out of the Ask. Now let's go back to the top here and make this even more versatile. See at the top here it says Receive Images Input from Share Sheet. If there is no input, continue. Let's change that to Ask For and you see it automatically picks photos. So this way if we run Shortcut by itself it will actually prompt for photos. So another way to use the same Shortcut. Note there is an option here to allow you to select multiple ones when it is asking for photos. So now if we look through what it does it's going to ask for a number here at the beginning. It's going to give the default of 240 but let you type whatever you want. Then it is going to go through a Repeat Loop going through each item that was passed into the shortcut. It's going to Resize each of those items to the size provided by that Input up there. Then it is going to convert each one of those to a JPEG image, remember we set it up for this quality with no metadata. Every time it goes through that loop it is going to add another image to the list. That's going to go out to the Share Action with all of the Repeat results. So if there are 3 images there will be 3 images that we would be sharing.
Let's give it a try. In the Photos App here I'm going to tap Select at the top and I'm going to select 3 different images. Then I'm going to Share and look for Resize Photos. It's going to prompt me here for the width. I'm just going to use the default, 240. Done. Then it is going to do that for all 3 images and you could see here at the top it says three images. So what do I want to do with them? So let's say we want to send them in an email message. Now we can see the email message and it's got all 3 of those images attached. They are all 240 pixels wide. Let's do the same thing but instead of sending these to Mail, we're just going to save them as files. So in this case let's set this to just 100 pixels wide. So really small. Then we're going to go to Save to Files. Then select a destination. Let's say the Desktop. Save. Now if we go into the Files App and we look at our Desktop Folder we'll find those 3 images there. If I select one you can see how it is pretty small. Just 100 pixels wide.
So let's try running this another way. I'm just going to launch this Shortcut without being in the Photos App. When I do that it is going to bring up the Photos Picker. I can select a couple images like this. Add. It will run this. Then I can choose how to Share it. Let's share it to an email, for instance. You could see how I can do it that way. I can also be in the Files App. Select an image there. Then Share and because it is an image I'm going to get the same Resize Photos shortcut. So I can Resize this and then share it how I like.
So there you go. There's a very simple shortcut that's also very versatile. You can use it for a single photo, multiple photos, from the Photos App, from a File, and you can use this to share photos at any size in any number of ways that you want. I recommend that you create the shortcut on your own so you can learn how shortcuts work and I'll include an image that allows you to see exactly the parts that you need to add. I'll also include a link for you to easily add this shortcut to your Shortcuts App on your iPhone. Check out the post at MacMost.com for those. Hope you found this useful. Thanks for watching. Related Subjects: iPad (168 videos), iPhone (260 videos), Shortcuts (40 videos)
Related Video Tutorials:
Create an iPhone Shortcut To Show Your Vaccination Card ― 10 Ways To Transfer Files Or Photos Between Mac, iPhone and iPad ― Use a Shortcut To Change iPhone Settings Just For One App ― Building a Handy Shortcut For Easy Access To iPhone Functions

This is the simple one-file shortcut:

This is the shortcut that works with multiple files:

Download it here:
Resize Photo Shortcut
https://macmost.com/how-to-resize-photos-with-a-shortcut-on-your-iphone-or-ipad-2.html
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Current Date
Apr, Thu 25 - 04:17 CEST