From 024b2107ae10a1979d872fdfee1ecaca05291835 Mon Sep 17 00:00:00 2001 From: wefhy Date: Sun, 20 Aug 2017 19:37:03 +0200 Subject: [PATCH] mogrify: add page (#1447) --- pages/common/mogrify.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/mogrify.md diff --git a/pages/common/mogrify.md b/pages/common/mogrify.md new file mode 100644 index 0000000000..657ec5edb4 --- /dev/null +++ b/pages/common/mogrify.md @@ -0,0 +1,23 @@ +# mogrify + +> Tool that allows making operations on multiple images ie. resizing, cropping, flipping, adding effects. Replaces the original file. + +- Resize all jpg images in the folder to 50% of their initial size: + +`mogrify -resize {{50%}} {{*.jpg}}` + +- Resize all images starting with DSC to 800x600: + +`mogrify -resize {{800x600}} {{DSC*}}` + +- Convert all png images in the folder to jpg: + +`mogrify -format {{jpg}} {{*.png}}` + +- Halve the saturation for all image files in the folder: + +`mogrify -modulate {{100,50}} {{*}}` + +- Double the brightness for all image files in the folder: + +`mogrify -modulate {{200}} {{*}}`