Helping myself remember how to do common things using imagemagick’s (excellent but many-optioned) convert utility.

convert -scale 10% {in} {out}

# convert to black and white
convert -type Grayscale {in} {out}
convert -monochrome {in} {out}

# invert colours
convert -negate in out

convert -rotate {in} {out} 

# make the given colour (e.g. here white) transparent
convert -transparent white {in} {out}
# make transparent white
convert -fill white -opaque none {in} {out}

Make square (for thumbnailing)

convert -background transparent -gravity center -extent 145x145 file1 file2
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>