ImageMagickを用いた画像サイズの変更方法。
柔軟な指定ができるため、サムネイルの自動生成等には非常に便利である。
画像の変更はconvertコマンドに引数として-geometryを指定し、加工後のサイズを指定する。
convert -geometry 40x40 [元画像名] [出力画像名]
convert -geometry 40 [元画像名] [出力画像名]
convert -geometry x40 [元画像名] [出力画像名]
convert -geometry 320x240 [元画像名] [出力画像名]
convert -geometry 640 [元画像名] [出力画像名]
convert -geometry x480 [元画像名] [出力画像名]