LoginSignup
4
6

More than 3 years have passed since last update.

ImageMagick コマンドまとめ

Last updated at Posted at 2018-01-18

ImageMagickを使って変換・結合等を行うときのコマンドメモ

2枚の画像(img_1, img_2)を余白(透明:30px)を空けて横方向に結合

convert img_1.png +append -background none -gravity east -splice 30x0 img_2.png +append output.png

n枚の画像(n≥3)を余白(透明:30px)を空けて結合

convert img_1.png +append -background none -gravity east -splice 30x0 img_2.png +append -splice 30x0 img_3.png ... +append -splice 30x0 img_n.png +append output.png

縦方向に結合

-append

タイル張り

montage -background none -tile 5x2 -geometry +30+30 *.png result.png

リサイズ

convert -resize 1024x src.tif dst.tif

オフセットを指定して切り抜き

convert -crop 1845x1022+30+30 result.png output.png

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6