1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 21:24:54 +02:00
tldr/pages/common/mogrify.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

24 lines
667 B
Markdown

# mogrify
> Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects.
> Changes are applied directly to the original file.
- Resize all JPEG images in the directory 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 directory to JPEG:
`mogrify -format {{jpg}} {{*.png}}`
- Halve the saturation of all image files in the current directory:
`mogrify -modulate {{100,50}} {{*}}`
- Double the brightness of all image files in the current directory:
`mogrify -modulate {{200}} {{*}}`