2017-08-20 18:37:03 +01:00
|
|
|
# mogrify
|
|
|
|
|
2017-09-16 12:19:29 +01:00
|
|
|
> Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects.
|
2017-09-11 12:05:15 +01:00
|
|
|
> Changes are applied directly to the original file.
|
2019-06-04 10:25:14 +01:00
|
|
|
> More information: <https://imagemagick.org/script/mogrify.php>.
|
2017-08-20 18:37:03 +01:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Resize all JPEG images in the directory to 50% of their initial size:
|
2017-08-20 18:37:03 +01:00
|
|
|
|
|
|
|
`mogrify -resize {{50%}} {{*.jpg}}`
|
|
|
|
|
2017-09-11 12:05:15 +01:00
|
|
|
- Resize all images starting with "DSC" to 800x600:
|
2017-08-20 18:37:03 +01:00
|
|
|
|
|
|
|
`mogrify -resize {{800x600}} {{DSC*}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Convert all PNGs in the directory to JPEG:
|
2017-08-20 18:37:03 +01:00
|
|
|
|
|
|
|
`mogrify -format {{jpg}} {{*.png}}`
|
|
|
|
|
2017-09-16 12:19:29 +01:00
|
|
|
- Halve the saturation of all image files in the current directory:
|
2017-08-20 18:37:03 +01:00
|
|
|
|
|
|
|
`mogrify -modulate {{100,50}} {{*}}`
|
|
|
|
|
2017-09-16 12:19:29 +01:00
|
|
|
- Double the brightness of all image files in the current directory:
|
2017-08-20 18:37:03 +01:00
|
|
|
|
|
|
|
`mogrify -modulate {{200}} {{*}}`
|