mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 21:00:25 +00:00
Update cheatsheets
This commit is contained in:
24
tldr/mogrify
24
tldr/mogrify
@@ -5,26 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mogrify
|
||||
|
||||
> Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects.
|
||||
> Changes are applied directly to the original file. Part of ImageMagick.
|
||||
> More information: <https://imagemagick.org/script/mogrify.php>.
|
||||
> This command is an alias of `magick mogrify`.
|
||||
|
||||
- Resize all JPEG images in the directory to 50% of their initial size:
|
||||
- View documentation for the original command:
|
||||
|
||||
`mogrify -resize {{50%}} {{*.jpg}}`
|
||||
|
||||
- Resize all images starting with `DSC` to 800x600:
|
||||
|
||||
`mogrify -resize {{800x600}} {{DSC*}}`
|
||||
|
||||
- Convert all PNGs 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}} {{*}}`
|
||||
`tldr magick mogrify`
|
||||
|
||||
Reference in New Issue
Block a user