I use a script to convert all the images in my folder to flop mode. The script looks like this:
for f in *.jpg; do
new="${f%%.jpg}_flop.jpg";
convert "$f" -flop -quality 100 "$new";
done
Now I discovered that there might be images with the extension. .JPGI was thinking of adding a new loop loop that looks like this:
for f in *.jpg; do
new="${f%%.jpg}_flop.jpg";
convert "$f" -flop -quality 100 "$new";
done
I think there is syntax for ignoring the case, and so I can do one loop instead of 2, any help?
Additionally, if there are also extensions, .jpegor .jpegis there syntax too?
source
share