diff --git a/cheat-sheets/ImageMagick-command-line-examples.adoc b/cheat-sheets/ImageMagick-command-line-examples.adoc index f3840e2..7f50e96 100644 --- a/cheat-sheets/ImageMagick-command-line-examples.adoc +++ b/cheat-sheets/ImageMagick-command-line-examples.adoc @@ -1 +1,14 @@ = ImageMagick Command Line Examples + + +== Rotate images 90 degrees + +Use `convert` tools in a bash script to rotate all .jpg images in the current folder, naming the rotated images as _current-name_-rotated.jpg + +[source,bash] +---- +for ii in *.jpg +do +convert ${ii} -rotate 90 ${ii}-rotated.jpg +done +----