process all photos in the folder
Posted: 2019-06-18T00:45:27-07:00
Hello!
Help me please. I am writing through Google translator. If something goes wrong, ask again.
Help with writing a script that will process all the photos that are in the folder this way:
1. Take a photo, compress up to 1000 pixels in width, save in webp format with the name of the original-image-1000.webp, save in the format jpg with the name of the original-image-1000.jpg, then compress the same photo to 500 pixels in width, save in webp format with the name of the original-image-500.webp, save in the format jpg with the name of the original-image-500.jpg
2. Take the next photo and do the same with it.
And so all the photos that will be in the folder.
Help me please. I am writing through Google translator. If something goes wrong, ask again.
Help with writing a script that will process all the photos that are in the folder this way:
1. Take a photo, compress up to 1000 pixels in width, save in webp format with the name of the original-image-1000.webp, save in the format jpg with the name of the original-image-1000.jpg, then compress the same photo to 500 pixels in width, save in webp format with the name of the original-image-500.webp, save in the format jpg with the name of the original-image-500.jpg
2. Take the next photo and do the same with it.
And so all the photos that will be in the folder.