Created
November 12, 2020 07:43
-
-
Save nstone101/4763246f878d79f7fa66323b9ef5c588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resize Images using Linux Command Line and Imagemagick | |
Image Resize with linux commands, Compress image with linux linux image compress linux image resize size change image size with linux | |
https://www.howtogeek.com/109369/how-to-quickly-resize-convert-modify-images-from-the-linux-terminal/ | |
sudo apt-get update | |
sudo apt-get install imagemagick -y | |
//Check Image Size | |
identify -format "%wx%h" image.jpg | |
//Resize image | |
convert oldnameimg.jpg -resize 600x400\> newnameimg.jpg | |
//Compress image | |
convert cat.jpeg -quality 50 cat.jpeg | |
convert cat.jpeg example.png | |
//Rotate | |
convert cat.jpeg -rotate 90 newimage.jpg | |
//Multiple Commands in Single line | |
convert cat.jpeg -resize 400x400 -rotate 180 -quality 55 newimagename.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment