 Okay, so I want to show you guys one of the best programs that you can possibly learn to use and that is image magic. And actually one of the reasons I want to do this is because I just now finished a video on GIMP. I haven't published it yet, but I know when I do people are going to complain about me using some kind of GUI application. So I'm going to show you image magic which is at its core it's a series of terminal commands and other operations and stuff like that which can modify that can create and modify images. So you can basically do image editing or image manipulation from the command line. Now what are the advantages of that? I mean for a lot of things you're going to want to use something like GIMP and manually modify something, but image magic is fantastic for automating things. It's fantastic for actually you know what I don't even want to list things. I want to just show you how it works and you can probably come up with different ways to use it. So I actually have pulled up here an image magic script that I use all the time and that is for my lock screen. Let me show you how that works. So I have a shortcut on my keyboard which happens to be super plus X which will lock up my screen. Now I'm going to go ahead and press it. Now what this script actually does is well as you can see my screen is not really visible anymore. It sort of is. You can see that my face is on it, but all of the text has been sort of, it's not really readable, have a nice little swirl. And there's even this nice, well I can't really move my mouse, but there's a nice little lock icon here. So I'm going to log back in for a second. This is my lock screen and I actually have it generated by image magic. And this is what this script is up here. So I'm going to show you how this works, really just the image magic part. And give you an idea of the kind of things you can do in image magic. So this is probably going to be first on a couple of videos on it. So anyway, the main command you use in image magic is convert. And I will say you can of course check the manual for all the enormous amount of things that you can do with convert. It's absolutely crazy. But we're going to talk about some, at least just the stuff that I use here. So here's what my script literally does. The script that uses scrote up here to take a screenshot. If you don't know what scrote is, it's just the command that takes a screenshot. So it saves it in temp screen. And then what it does is it converts that raw input. And what it does is it adds this paint option. Let's go ahead and play around with what this is. Now I have a couple files in this folder. I have this image here, this village thing. And I have this thinking emoji. So I'm going to play around. I'm going to go to this folder and I'm going to play around with them. So first let's play with the paint option here. What exactly does paint do? I am going to run the command convert and then village. And I'm going to give it the paint option. And I'm going to say paint one. And I'm going to put the output as village underscore p or something like that. So if you just run that, we can look at the village file. And if I go to the village painted file, you'll see that it's sort of a little blurry. It's not the same thing as a typical blur. It maintains the color. It just sort of changes it a little bit. Now this isn't very visible in a JPEG file that's like something in the real world. But if I up this paint value, let's say I up it to something like 20 and run that again. It's going to take a second because the higher it is, the longer it takes. But it's going to get more of what we actually want. It's going to modify the image more. Now if we wait a second for that, it's actually taking a lot longer than I thought. But now that that's done, you'll see that it has this very nice. It's almost like a watercolor view to it. And the higher the value that you give it, the more sort of distorted. I mean, it's distorted, but it's still like good looking. That's why I use paint for my screen lock. So that's what that does. Now let's also try the swirl command. Where is it? Yeah, swirl. So let's take our other image, which is the thinking emoji. And I'm going to convert thinking and I'm going to swirl it. Let's say 30 degrees, well, negative 30 degrees. We can do that. And then I'm going to do thinking. I'll put it to thinking underscore s or something like that. So once I do that, it'll take a second. But you will see that now the emoji has been slightly distorted. I mean, it was already distorted, but now it's a little more. We can actually up that value. So let's up it to something much bigger, let's say 120 or something like that. See what that looks like. Now it's very distorted. So now this is much more distorted. So this is what swirl does to you here. So now we've talked about these two different operations. Now, of course, you can run both of them at the same time. So if I take the village, I can paint it. Let's paint it, give it four, some smaller value. I can also swirl it simultaneously. So let's swirl it, I don't know, 180 degrees or something like that. And see what that output looks like. Now you'll see that there's a big swirl on it and it's also been painted. Now this is basically what I am doing for my lock screen here. With one addition, that is, let's go back to my lock screen actually. But you'll see that I also have a little lock in the middle and that is actually not part of my screen locking program. That's actually manually added there by image magic. And that's something that I can easily add in as well. So if I, basically what this command, notice what this command is doing. It's taking this as an input. It's then performing paint and swirl on it. And then it's taking this as an input. This is the like picture of the lock that I have. And it's giving that additional options. It's saying gravity center, which basically means center that thing. And composite in Matei, that's for actually having this kind of composite image. Now let's actually run these manually. Let's say we want to take the thinking emoji and we want to superimpose it over this picture of a village or something like that. Let's actually get rid of these two other files that we made. Now to do that it's pretty simple. We'll just say convert and I'll say village. And then I'll say what was it, center, gravity. So gravity center, actually let me double check to see if that's right, yes it is. And then I will put in the thinking emoji. And then we'll say output is going to be the name of our output file and I'm going to run that. That was nice and quick. Oops, forgot to actually add the composite option. But yeah, that's what it does. If you give it multiple files and don't tell it to do a composite, it's just going to output them again. That's not what we want. But mistakes help you learn. So we're going to do composite and matte. And then we are going to output it. And once we have that, we will, oh, okay, that's not how I, oh, I guess the thinking emoji is enormous. So let's actually shrink that thinking emoji down a little bit. So we could open up GIMP and manually do it, but that's a huge waste of time. What we can do is just say thinking and I'll say resize and let's say we'll resize it to the Y chord or is it the X chord and that's who cares. We'll just make it, so what you can do is you can manually specify some kind of size or you can just have one of the either width or height, I'll just put 300 here and that's going to guess the other value of it. So I'll resize it and I'll say think resized. So now that's that and that should give us, yeah, so that, I think that's a much smaller picture. We'll, we'll find out. So now if we run this command we ran a second ago where we're converting, we're putting both of these together. I'm going to replace this with the resized image. Now I'm going to run that and that is going to give us, yeah, that's what we want. Okay, so here we have it. So we have a background image and this thing is superimposed over it. So that's sort of what we want. Now what I have from my lock screen, again, is just a combination of the composite and these operations, the swirl and the paint operations on the first input. Just to be clear, actually we can go ahead and put it in there just to, you know, be super clear about it. So if I paint, let's say I'll paint three and all swirl, you know, 180 degrees or something like that and then run that and that will give us, yeah. So this is basically the same thing as my lock screen in the sense that you have a image superimposed over sort of a modulated thing here. So that, that's what we want to look for. So this is sort of a tutorial but really just to show you the kind of stuff you can do with image magic and obviously this is really nice because the way I use it for my lock screen. It's not like I am manually editing the files, the screenshots that it takes but image magic just does everything automatically. It's very nice and very useful for other things. So I'll probably do more videos on this but, you know, if you have any ideas, you know, shoot them in the comments or something and I'll also provide a link. Chris Okapinti actually did a series on image magic a little bit ago just on some different commands. So I think I'll put that link in the description or as a comment or something like that. So check those out. It's just nice to play around with. And I will say that you can go to imagemagic.org slash capital U usage. And this is like the big manual with, you know, visual illustrations of all the great things you can do. So definitely check this out. But anyway, so that's going to be about it for now. So I'll see you guys next time.