diagnostics_cheat_sheets/cheat-sheets/ImageMagick-command-line-examples.adoc
hhftechnologies ccdfb79a59 update
2024-10-01 11:45:28 +05:30

24 lines
494 B
Text

= ImageMagick Command Line Examples
:toc:
== 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
----
== Combine images in the current folder into a PDF file
Let's combine images with extension .jpg (using shell wildcards) into one
PDF file.
----
magick *.jpg pics-2022-1.pdf
----