convert image -bordercolor white -border 10 resultimage

or

convert image -background white -gravity center -extent WxH resultimage


see
http://www.imagemagick.org/Usage/crop/#border
http://www.imagemagick.org/Usage/crop/#extent



>I see -crop that can cut an image. I'm wondering how to expand an
>image by padding with some background color (e.g. white) pixels. Could
>anybody let me know? Thanks!
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to