Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

image crop and center linux

For linux(debian or similar)

Step 1: Install ImageMagick
Step 2: "mogrify -path ./where/to/output/ -resize 1000x1000^ -gravity Center -background transparent -extent 600x600 ./where/the/images/at/*"

Step 2 Notes:
- "-background transparent" is to make the image transparent
- "-resize" is the size of the image you want
- "-extent" is the size of crop
- "-gravity" is to make the image center after crop
Comment

PREVIOUS NEXT
Code Example
Shell :: git remove large files with bfg 
Shell :: git untract file 
Shell :: powershell history file 
Shell :: how to remove one file from git history 
Shell :: ubuntu bash script exit when error 
Shell :: scp from server to my computer 
Shell :: cat along with line numbers 
Shell :: download gif 
Shell :: terminal open vim 
Shell :: make new branch in git 
Shell :: teleport in vue 
Shell :: bash script template linux 
Shell :: install font in react native 
Shell :: grep a variable 
Shell :: linux apps 
Shell :: restart service linux crontab 
Shell :: example bash script 
Shell :: pacman search 
Shell :: For which GitHub repository would you like to set up a GitHub workflow? 
Shell :: git push origin cannot be resolved to branch 
Shell :: and or bash 
Shell :: lighthouse 
Shell :: git bash 
Shell :: how add ssh 
Shell :: printf linux 
Shell :: crontab mac 
Shell :: linux systeme de fichier 
Shell :: go test color output 
Shell :: linux find file type under a specific folder 
Shell :: docker-compose-to-always-re-create-containers-from-fresh-images 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =