7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

imagemagick 自分用逆引きメモ

7
Last updated at Posted at 2015-03-11

複数の画像を、並べた一枚の画像にする

$ montage -tile 2x2 *.png dest.png

montage

複数の画像を一括処理するimagemagickのコマンド

-tile 2x2

横2 縦2 に並べる

複数の画像を連結する(ついでに間も開ける)

$ convert +append -border 30x30  src-*.png out.png

意味

src-0.png src-1.png とある元画像を、水平方向に上下左右に30の余白を開けて連結して、out.pngとして出力

並べられた画像を、等間隔に分割した個別の画像にする

$ convert -crop 24x24 src.png dest.png

意味

src.png を横24縦24ごとに切り出してdest-0.png dest-1.pngというように出力する

-crop 24x24

横24縦24ごとに画像を切り出す。元画像が24の倍数だったらその数分切り出してくれる

エラー montage: unable to read font `(null)'

原因

よくわからない

解決方法

$ brew install ghostscript
7
8
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
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?