Last active
September 20, 2018 14:38
-
-
Save ayoayco/9cf26c67fc862e92e20059c268b143ba 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 image to width 25, keeping aspect ratio | |
convert -geometry 25x src/image1.png out/image1.png | |
# resize image to height 25, keeping aspect ratio | |
convert -geometry x25 src/image1.png out/image1.png | |
# concatenate images horizontally | |
convert +append src/image1.png src/image2.png out/image12horiz.png | |
# concatenate images vertically | |
convert -append src/image1.png src/image2.png out/image12vert.png | |
# batch resize jpg files output to same filename with "_small" | |
mogrify -resize 240 -set filename:name "%t_small.%e" -write "%[filename:name]" *jpg | |
# optimize image for web, decrease quality | |
convert input.png -quality 50 output.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment