 So, in my last video, I did a short video on converting images to emoji cons, and what I mean by that, again, if you've ever played the game Wordle, when you beat the game, it does give you something to share that uses emoji cons to show your progress in the game. And I thought, hey, can I convert images to emoji cons in my shell? So I wrote a quick, it's only a couple of lines, it's actually very simple to convert an image to emoji cons. Of course, I'm doing it in monochrome, so I'm only using black and white emojis, you could improve this script to show other colors as well. So let's see how that script works real quick. I run my script, I give it an image such as image.bmp, so bitmap, that's this image here. And when I run that, it gives me the emoji cons images in the shell here. Now, again, this has to be a low resolution image because each one of these squares is a pixel in the image. So if it went really large, it would go off the screen, everything would get disobubulated. Now, I also can do it with a JPEG image. And if you watched my previous video, two or three videos ago, we talked about converting images to text and how you get different values when you're using JPEG compression because it actually creates other colored pixels around your pixels. Let's look at my script and see how I overcame that. Again, doing it monochrome made it a lot easier. If you're going to implement other colors, you might have to take a few extra steps. But real quick, let's just open up my script file and have a look at what I did here. The first little thing here, this is just like a little help telling you how to run the script. Basically, you need to give it an input. But here, we're going to convert the image. We're using threshold 50 and we're going to output the text. Again, if we output the text, let's do that for one of our images. Again, we're using convert, which is part of the image magic package, which if you're on Linux, you probably already have installed, if not, it's in your package manager. It is cross-platform and is a very commonly used package for converting images, especially on web servers and whatnot. But if I can give it an image, such as image.bmp, and then I can say text colon dash, tells me to output it as text value out to the shell. So I do that and it actually gives me a value for each pixel in that image. It tells me the coordinates of that pixel, the RGB value, the hex value. And then for certain colors such as black and white and other standard colors, it will actually just give me the word black or white or red. What the threshold is doing is that's eliminating. So if I do that same thing with the JPEG image, you can see that we get values that aren't the standard white or black. And I just want a monochrome black and white image. And if there's pixels that are the colors off, the threshold basically just snaps everything into place and gets rid of those pixels that might be a little off color. So that's what that line of code is doing there. It's basically just, there's another way to get monochrome. And I don't think I use that because if you have the JPEG, it might add those pixels in how you don't want threshold splits them, divides them up fairly well, at least for all the examples I've done. This next line of code here is what it's doing is it's actually getting the, how many pixels the width resolution of the image. Because I need that to divide things up later on. So again, if I was to run this command to get the text and I was just to head the last line, the first line. So I get the first line of text. It basically tells me the resolution of the image and things about the color. And I just want the width of the image. So if I was to get that output and, here, let's go back into my code real quick. I will take this line here and run that same command. Now it's just going to give me, in this case, 20. It's 20 by 20, but it's giving me the width of the image, which I will use in my next line of code, is I'm taking that width count. And I'm taking the text that I got from the image and I'm removing that first line because of the comment. And then I'm just going through and I'm grabbing that final column and I'm looking, does it say black or white, right? If it says white, give me a white emoji con. If it says black, give me this. It's kind of a gray emoji con, but you can change whatever color you want. Again, you can set this up to go through for other colors like red or green. And then, basically, I'm going to print out all those emoji cons, but using the count that we got earlier is where I'm going to put our new line. So every 20th character, we're going to put a new line. That's it. So really, if you cut out this and the comments, I'm doing all this in three lines of code. And so we get our script here, which there will be a link to this script in the description of this video up on Pastebin. But I can give it an image, whether it's a JPEG or a Bitmap. And whoops, not image two, but image dot JPEG. And it'll spit out a monochrome emoji con image to the shell. This is just for fun. It's similar to programs that might maybe use create ASCII art, but I'm doing it with emoji cons. And it was just a fun little project that maybe you've played around with and find some uses for in your shell. Again, you can use it on larger images. So for example, this image here is 640 by, probably 480 or something like that, or 640. Actually, it says right there, 640 by 427. If I was to run my code on that image, it will work. But because the screen, the character width of my shell is so small, nothing's going to get lined up properly. It's going to take a little while, convert it all to text, and then you kind of get this. And of course, I can always zoom out a little bit and try running it again. But unless I can get 640 pixels wide or characters wide in my shell, the image is not going to look quite right. So that's a limitation of it. Of course, you could always resize the image in the script before converting it to text. And that would help so you could probably get the count of characters on the screen and then resize your image to that width and then run it. So again, you can do a lot more if you add more lines to the code. But in basically three lines of code, I was able to get quite a bit done. So again, check out the link in the description of this video for this script. I hope this all made sense to you. If not, maybe watch my previous two videos where I go into a little more detail and really go back a little bit further. I talk about how to install color emoji cons on your machine. So that's it. Filmsbychris.com. That's Chris at the K. There's a link in the description. Also check out my Patreon page. If you go to Filmsbychris.com, there's a support section where you can support with your PayPal, LibrePay, or Patreon. And I do appreciate the support. I thank you for watching. And as always, I hope that you have a great day.