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>.
Install
- All systems
-
curl cmd.cat/mogrify.sh
- Debian
-
apt-get install graphicsmagick-imagemagick-compat
- Ubuntu
-
apt-get install graphicsmagick-imagemagick-compat
- Alpine
-
apk add imagemagick6
- Arch Linux
-
pacman -S imagemagick6
- Kali Linux
-
apt-get install graphicsmagick-imagemagick-compat
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install graphicsmagick-imagemagick-compat
- Raspbian
-
apt-get install graphicsmagick-imagemagick-compat
- Dockerfile
- dockerfile.run/mogrify
- Docker
-
docker run cmd.cat/mogrify mogrify
powered by Commando
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>.
-
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 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 *
© tl;dr; authors and contributors