Page 1 of 1

process all photos in the folder

Posted: 2019-06-18T00:45:27-07:00
by caho
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.

Re: process all photos in the folder

Posted: 2019-06-18T05:47:55-07:00
by snibgo
What version of IM? What is your script language, eg bash or Windows BAT?

Re: process all photos in the folder

Posted: 2019-06-18T08:23:11-07:00
by fmw42
See examples of writing multiple images in the same command at https://imagemagick.org/Usage/files/#write