imagemagick:imagemagick

ImageMagick

  • 画像はそれぞれ横幅 1024px
  • クレジット入れる
  • font は
    convert -list font

    で調べる

montage \
    -auto-orient \
    -tile 2x2 \
    -geometry 1024x \
    1.jpg 2.jpg 3.jpg 4.jpg \
    jpg:- | \
convert - \
    -font "Bradley-Hand-Bold" \
    -pointsize 18 \
    -fill ForestGreen \
    -gravity SouthEast \
    -annotate +10+10 'sample' \
    out.jpg

4枚の画像それぞれの右下に文字を入れたければ次のようにする。↑は2×2を作ってから右下に文字を入れてる。

montage \
    -tile 2x2 \
    -geometry 1024x \
    -font "Bradley-Hand-Bold" \
    -annotate +440+10 'by @ten_forward' \
    -pointsize 18 \
    -fill ForestGreen \
    -gravity South \
    1.jpg 2.jpg 3.jpg 4.jpg out.jpg
magick GridArt_20250831_230915523.jpg -gravity SouthEast -font "Andale-Mono" -geometry 1024x -fill ForestGreen -pointsize 18 -annotate +0 "@ten_forward" out.jp
magick convert -gravity South -font "Liberation-Serif-Italic" -geometry 1024x -annotate +440+10 "by @ten_forward" -pointsize 18 -fill ForestGreen img.jpg out.jpg
magick convert -gravity SouthEast -font "Andale-Mono" -geometry 2048x -annotate +10+10 "by @ten_forward" -pointsize 32 -fill #C0DCC0 $f conv/$f
magick $f -gravity SouthEast -font "Bradley-Hand-Bold" -geometry 2048x -pointsize 36 -fill #00ee00 -annotate +10+10 "by @ten_forward" conv/$f

hellolive

convert -draw 'rectangle 200,1640 490,2095' in out

hellolive

convert Pic02491.png -crop 1100x1987+192+154 test.png

左上から2160×2160で切り抜き

magick $f -gravity northwest -crop 2160x2160+0+0 conv/$f
magick test.png -colorspace Gray gray_colorspace.png
magick hoge.jpg -rotate 90 fuga.jpg

2×2, 画像間隔10px

montage 2025-10-08_UNICODE_{1,2,3,4}.jpg -tile 2x2 -geometry +10+10 conv/2025-10-08_UNICODE_1.jpg
  • imagemagick/imagemagick.txt
  • 最終更新: 2026/02/18 17:22
  • by tenforward