Monday, September 30, 2013

resize an avatar

Found this trick over at the CrunchBang forums, where the maximum size for a forum avatar is 60x60 pixels:

$ convert -size 60x60 $TARGET -resize 60x60 +profile '*' $OUTPUT

The convert command is part of the ImageMagick software suite; the package imagemagick is in the Debian repos. See man imagemagick, man convert, etc. Additional information can be found at http://www.imagemagick.org/script/index.php.

No comments: