 Hey everyone, welcome back to the Python image library module series I'm returning this series after a long hiatus right now I'm on Windows and that's kind of actually why I'm gonna have to teach you what I am teaching you now I'm also very surprised didn't end up showing this to you guys earlier in the series But I mean there's a lot with this series that I'm just not happy with so anyway what I wanted to show you in this tutorial was the save function which is super easy super simple and Again, I really don't know why I didn't show it to you earlier because it's kind of necessary for your image manipulation Stuff if you at least want to save your file and use it for later use So it's the image object that you've got created with the image library You've opened something up or you've created a new image or anything it's really just your image object and it's simply safe like that's it that that's the function and It takes one argument just a file name Typically you can pass the file name that you've opened it with if you want to overwrite the you know The file that you've been working with to begin with but if you don't want to do this change it to be whatever you want Like anything a PNG or dot jpeg it's entirely up to you Now these there is another argument for the mode and you can supply this I don't know if it's a string or I don't know if it's a type You can probably find it online in the documentation if you Google that I would encourage that but Actually, if you don't supply the mode the image library will try and understand it based on the file extension that you save here so if I did Simply file name and I'm gonna actually prepend like modified to it because I don't want to overwrite the file that I'm working with and That's exactly it now when we run this I've got on my desktop modified pi.png and The only reason that I wanted to actually show you this in this tutorial whoa Was because I can't run image.show under windows If I comment this out now if I run this It'll try and load it And I don't think it will actually ever get to it So that's why I wanted to hit the save button and at least show you the save function here So okay. Thanks for watching guys super duper simple tutorial moving on to other stuff with the Python image library But got to know this save function Thanks guys. See you in the next tutorial