| Main |
|
EXAMPLES Converts from .png to raw rgb map: >convert test.png test.rgb from .png to raw rgba map: >convert test.png test.rgba from .png to raw gray map: >convert test.png test.gray from .png to negated raw gray map (alpha map): >convert -negate test.png test.gray from bi-level bitmap .png to raw bits map: >convert test.png test.mono Resizing >convert test.png -resize 50% test_small.png >convert test.png -resize 200% test_big.png without filter: >convert test.png -scale 200% test_big.png resize image to 640x480 if size of source image is bigger than 640x480: >convert test.png -resize 640x480> test_big.png setting specific width to 720 with preserving aspect ratio: >convert test.png -resize 720x test_c.png setting specific width and height to 574x487 without preserving aspect ratio: >convert test.png -resize 574x487! test_c.png Changing specific color changes all white pixels in test.png to green and saves picture in test_out.png: >convert test.png -fill green -opaque white test_out.png the same but for fuzzy white (white plus some shade): >convert test.png -fill green -fuzz 10000 -opaque white test_out.png the same but with rgb color notation: >convert test.png -fill rgb(0,255,0) -fuzz 10000 -opaque rgb(255,255,255) test_out.png Extracting frames from .mng animation file to one .png per frame (test-[nr_of_frame]): >convert test.mng test.png Getting info about width and height of image (test.png), to specific format (test_[width]x[height].png): >identify -format "test_%wx%h.png" test.png |