August 28th, 2007
ImageMagick: A simple, and kind of overkill, way to resize and pad an image
If your background color is white, this will do a good job of padding the resized image…even though the huge border is kind of overkill for the purpose:
convert <filename> -filter Lanczos -scale <size> -bordercolor white -border
