I am trying to batch convert some gif files to animated png files, however, my question is quite clear. How can I input multiple files in a directory to a CLI terminal (I'm using PowerShell)?
I am quite a beginner, so I'm 99% sure I am doing something silly.
I am using a gif to animated png program (gif2apng) It works perfectly when I put something like
gif2apng -i file.gif -o output.png
I have multiple GIFs in that directory, so, I used a wildcard
gif2apng -i *.gif
but then, I get an error
Error: can't open the file '*.gif'
I got this exact error when I tried to select multiple images (with Google's program, img2webp) by not writing all the names like this
img2webp -lossy 1.png 2.png 3.png 4.png 5.png 6.png -o output.png
And by just writing
img2webp -lossy *.png
Please guide me
Thanks, Harshit