Last active
June 7, 2016 13:25
-
-
Save srdjan-m/02d4edb562fe742f418051f928db08bd to your computer and use it in GitHub Desktop.
imagemagick: various commands
This file contains hidden or 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
// Change canvas size (resize canvas to 48x48 pixels) | |
convert input.png -gravity center -background transparent -extent 48x48 output.png | |
// Resize | |
convert img1.png -resize 400x300 img2.png | |
// Resize by height only: | |
convert img1.png -resize x300 img2.png | |
// width_x_height_+_leftoffset_+_topoffset_ | |
convert img1.png -crop 500x500+500+0 img2.png | |
// Get image info... | |
identify img.png | |
// Konvertuj u 555 RGB (za ICE) | |
convert image.gif +dither -colors 256 -define bmp:bit-depth=5 image.bmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment