1
0
forked from extern/nix-config

Add ImageMagick to commands.md

This commit is contained in:
Donovan Glover 2018-01-13 23:38:54 -05:00
parent 6b74a10189
commit 2be2713d75
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D

View File

@ -189,6 +189,14 @@ Use `firejail` to sandbox a program or other piece of software. This ensures tha
- Remove all symbolic links to firejail: `firecfg --clean`
- Verify that firejail is being used for a particular program: `firejail --list`
### ImageMagick
- Resize an image to 50% of its original size: `convert -resize 50% <given_img> <output_img>`
- Resize an image to a specific size: `convert -resize 1280x720 <given_img> <output_img>`
- Resize all png files in a directory to 800x600: `mogrify -resize 800x600 *.png`
Note that you should use `mogrify` instead of `convert` when you want to change images directly.
### Pacman
Although the examples below use `pacman`, they apply for `yay` as well.