Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Sunday, July 31, 2016 at 16:00

If the previous article talked about bulk rotating, then this article talks about bulk flipping. You can do it both vertically and horizontally. This can be achieved by using the options -flip and -flop. This is also ery usable for you working in e.g. graphic design field.

Vertical (Up to Down)

for i in *.png; do convert -verbose -flip "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done;

Horizontal (Left to Right)

for i in *.png; do convert -verbose -flop "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done;