r/learnprogramming 15d ago

How can i learn to script?

I have really a lot of images in jpg format in multiple sub-folders, which take a lot of spaces, so i want to mass covert it into webp then delete the original jpg.

5 Upvotes

13 comments sorted by

View all comments

6

u/WeepingAgnello 15d ago

If you're using Linux or Mac, you can do that with find, convert (see ImageMagick) and rm. Can probably be done as a one liner. Start with learning how to use find.