IT notes

convert svg

Convert svg to png having transparent background: $ convert -background none -density 1200 in.svg out.png brew install imagemagick librsvg

extent

To resize an image and adjust it to fit a fixed canvas with transparent background: $ convert in.png \ -resize 128x128 \ -background none \ -gravity center \ -extent 128x128 \ out.png

txt 2 img

To create an image with a custom label from the command line: convert -font AndaleMono -size 200x32 -gravity center -background white -fill black label:"0O0ilLxt your msg " out.png

transparent

Create an image with transparent background Using convert from imagemagick: convert input.jpg -fuzz 10% -transparent white transparent.png