 All right, welcome back. We're going to reboot this channel starting off with some comments from some old videos namely the PDF Video that where we have some questions about how do you get a jpeg into a PDF also? There was a comment about how our crap before wasn't destructive. It wasn't actually removing the data on that video so we'll actually dive into a Destructive form of copying the data data out of the file so it actually shrinks the file as well as Removing the parts that you don't want and then also we'll Move on forward with this Channel, please leave some comments if you have any suggestions on what you would like to see in some future videos With that we will dive into the code Over on the left here, you can see my folder structure. We're gonna start with four dimmer images here Mainly focusing on this nice little beach here sure would be nice to be out there I'm in Denver here, and it's cold and snowy right now. So a nice little beach scenario would be perfect But we're going to dive into turning an image into a PDF. We're gonna use A package called pillow. So we got to our pip install pillow if we haven't already Downloaded that Here you can see mine is already in there, but once we're in our Python file We can do a from pill import image. We're only using the image portion of this package right now And we're in that image package. We're doing the image open and print the C's we're gonna pass it in our file name So we're gonna take all four of these pass them into four different variables bloons beach mountains stars and Just open those up into our Python instance Just Now that it's inside as a variable of beach image We need to actually make sure that it's in the right format that we wanted and what we wanted in is good old RGB red green blue. So we're gonna do a dot convert Passes in as RGB That we'll show you our image in line here. It's just straight up color But hey, what if we wanted a black and white? That's just passing in the command of L. So convert L and There you go. We got your grayscale technically not black and white more of a grayscale but We're gonna stick with RGB. So we'll take our four image items convert them into RGB and then Just store them as another clearly labeled beach RGB. Just show that we did convert it from there All we got to do is RG beach dot RGB dot save Or image item can just be done with a dot save and pass in the new file name beach balloons mountains stars PDF You don't see them over here currently, but we'll run them now and Shortly here. We should have some PDFs We got our balloons beach mountain stars PDF. Just look at that beach one sure enough looks the same But you'll notice here. We're actually instead of a PDF reader here So you can get your standard PDF controls rather than in your just entered JPEG. So Hope this helps Please like subscribe and add any comments about what you think you might want to see next Until next time Have a great day