Hello! This is Dr. Bell. Welcome back in this video you learn how to use the image processing script and adobe Photoshop and Powershell.
To save you a lot of time when you need to make similar changes to multiple images. Let's just assume I've got an image here. But.
Let's assume we maybe had 10 images or more. And I want to resize these.
I could come right up here to image.
I could go to image size I could enter a new width.
Say 600.
400. Have you changed the resolution.
And.
Hit. Okay, and save it.
What if I've got 10 images or a hundred images? Now I'm gonna go ahead.
Do that.
So the very 1st you want to do is I get some images. So if you press here on the assignment, 18.
Come over here. Assignment 18. I've got 10 images here. Just simply go ahead and click on each one of these.
And save them.
Okay. I've already got these images saved.
So if I take a look here.
I've actually, I'm gonna be showing you a couple of ones. So I've got them saved. Once in a folder called Bulls one.
If I take a look here, I put my cursor on top of it. I can see it's 750. I'm not sure if you saw that there 750 by 500, if that's not popping up for you to simply go ahead and right click on image.
Go to properties.
Go to details, and I can see, sure enough, it's 750 pixels and widths and height.
Okay.
And then again, if you once wanted, if you once got these all saved, once you go ahead and.
Create a backup just in case you mess up there. So I've actually got involved one.
Here's polls to the exact same thing.
And I've even got a backup just in case there.
So here's Paul's 1.
Okay? So again, what you could do is come in here and do them one at a time. But if you got hundreds of images, very labor intensive, there.
So a quick approach to.
Resize images. And there's actually a lot of other transformations you can do is using the image processor. And to do that, come right down here to file.
Go to scripts.
And choose image, processor.
File scripts, image processor. Here.
And the very 1st step you're gonna want to do is simply go ahead and select your folder.
Mine is already being selected here.
I've got it on balls once. I'm just
On the desktop, and a folder called atem. I've got balls one.
Then you're gonna want to go ahead and specify A with, I'm gonna go 600.
And I'm gonna go 400 and the height, if I wanted to, I could be also saving these in pst, I could be saving a tiff. But I'm just gonna do this one thing. So I specify the folder.
A specified.
This new size.
600 by 400, and then I could simply come right up here and run.
And it's gonna take each one of these images, open it up, resize it.
And then it's actually gonna be saving it in a separate folder.
So hopefully, we're should be getting pretty close here.
8.
9.
And there we go.
Okay, so now.
It has created a separate folder in that same area. It's now called Jpeg.
And if I go ahead and put my cursor on this.
I can see it's 600 by 400. And again, if you're not.
Just come right down here to properties.
Go to details, and sure enough, I can see it's 600.
And with 400 and height.
Okay, let me show you another way that you can resize images. And this is a very common approach.
And it's gonna be using a Powershell.
And imagemagic to get Powershell available.
I'm just gonna press right here on this. Looks like I am.
Zoom, tool.
Magnifying glass. And I'm just gonna type in our.
So, and I'm not sure if this is installed on every computer or not. So if it's not, just go ahead and follow along here.
So that's going to open up Powershell.
I'm now gonna come along and come right up here. I'm gonna right. Click here and copy the address.
We come back to our Powershell.
I'm gonna type CD, which is gonna Change Directory.
I'm gonna paste.
And.
Do a Di, which is directory, and I can see I've got the 10 bulls there.
Okay. So now to send me so a little time. Here, let me go ahead and throw you a couple of other options here and again, this is gonna be used in some software.
This 1st couple are using image magic.
Here it is. I just got into Google, and you can see image from the command line, as magic is a free and open source. So this is what a lot of people are going to use if they need to make transformations to multiple images. There.
So what I'm gonna do is let's assume this 1st command. Actually, that is just a comment. I can grab it if I want. But what is it's gonna do is it's gonna take all.
The asterisk stands for all images, and with Jpeg.
And then reform Adam to Png.
So this one command and go ahead and copy that.
Come right back to Powershell. I'm going to paste.
And how at the enter key.
And it's gonna take every single one of these images.
And convert it into a Png. So if I do a directory listing now.
I can see I've got one dot Jpeg and bond cheap, and if I came over here, sure enough, I've doubled.
The number of images there.
Okay, let's assume I wanted to resize these images.
So I could. I just showed you how to do that. Using.
Adobe Photoshop. Now let's go ahead and just use imagemagic. I'm gonna copy that.
Come right back over here and paste.
I tell you what, before I hit the.
Let me just show you here if I put my cursor on one of these that ends with a Png.
You can say. Sure enough, it's 750.
5 500.
Okay.
And now let me go ahead and hit. Enter!
And wait just a second or 2.
And there we go.
And now.
Actually, if I even did a directory listing.
You're gonna see that.
The size has decreased on these balls because they're now smaller, or if I come over here to balls too. But my cursor on one of these that ends with a p and whoops
Let me just make sure. Here, there.
All that ended with Png.
Let me hit refresh. Let me come back up here. A level.
Come back to poll 2.
And now we go. Okay. So now, when I put my cursor on one of these that ends with Png, or if I come down here to properties. I can now see.
It is 600 pixels in width by 400 pixels and height.
I'll tell you what. Let me go ahead and.
Delete these png files.
You may or may not have.
Powershell installed, and you probably don't have that software in image magic. But you should be able to follow along with this last step.
Take a look at. I've got these 10 images here.
I'll start with Bull.
Let's assume we want to rename these. Yeah, I could come up here and go right click and rename and do that one at a time. But surely there's a fast way, and there is, and that's gonna be used in that Powershell here. And what this is gonna do is I'm gonna rename every one of them rather than just being bull. Let's assume I wanna have them say, Wooden ball.
And so this is going to get.
Get the child items. So it's gonna work with every that's the asterix is gonna be all Jpegs. And then for each one of them. It's gonna take bowl and rename it to win ball. So I'm just gonna go ahead and grab this cared right here.
Copy it.
I'm back here to Powershell. Let me do a directory listing, because I've only got 10 now.
And I'm gonna do a paste.
And hit, enter and do a di. And sure enough, just like that, I've renamed all those images.
And so now they're rather than just ball. It's wind.
And take a look at that code. One more time. Here.
One little mistake, and this won't work, so get child Asterix. Jpeg, make sure you got your spaces before and after that vertical bar.
Dollar sign underscore space dollar sign. Just take a closer look at that, and if you copy that and paste it, your code should work just as well.
Well, hopefully in this video.
You learned how to.
Resize images. I've showed you a couple using adobe Photoshop.
And the other using Powershell to save you a lot of time.
Possibly reformatting, resizing, renaming files. There.
Using the script as opposed to manually doing that one at a time. Well, I catch the next video. Thanks a lot. Bye.