From 1892f45a6513aa6e0d572fbeda178c31995c9b16 Mon Sep 17 00:00:00 2001 From: Yuri Slobodyanyuk Date: Sun, 10 Jul 2022 20:54:51 +0300 Subject: [PATCH] ImageMagic cheat sheet --- cheat-sheets/ImageMagick-command-line-examples.adoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 +----