imagemagick:imagemagick

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
imagemagick:imagemagick [2022/02/17 17:20] tenforwardimagemagick:imagemagick [2026/02/18 17:22] (現在) tenforward
行 5: 行 5:
   * クレジット入れる   * クレジット入れる
   * font は <code>convert -list font</code> で調べる   * font は <code>convert -list font</code> で調べる
 +
 +<code>
 +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
 +</code>
 +
 +4枚の画像それぞれの右下に文字を入れたければ次のようにする。↑は2x2を作ってから右下に文字を入れてる。
  
 <code>montage \ <code>montage \
     -tile 2x2 \     -tile 2x2 \
     -geometry 1024x \     -geometry 1024x \
-    -font "Liberation-Serif-Italic" \+    -font "Bradley-Hand-Bold" \
     -annotate +440+10 'by @ten_forward' \     -annotate +440+10 'by @ten_forward' \
     -pointsize 18 \     -pointsize 18 \
行 19: 行 37:
  
 <code> <code>
-convert -gravity South -font "Liberation-Serif-Italic" -geometry 1024x -annotate +440+10 "by @ten_forward" -pointsize 18 -fill ForestGreen img.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 
 +</code> 
 + 
 +<code> 
 +magick convert -gravity South -font "Liberation-Serif-Italic" -geometry 1024x -annotate +440+10 "by @ten_forward" -pointsize 18 -fill ForestGreen img.jpg out.jpg 
 +</code> 
 + 
 +<code> 
 +magick convert -gravity SouthEast -font "Andale-Mono" -geometry 2048x -annotate +10+10 "by @ten_forward" -pointsize 32 -fill #C0DCC0 $f conv/$f 
 +</code> 
 + 
 +<code> 
 +magick $f -gravity SouthEast -font "Bradley-Hand-Bold" -geometry 2048x -pointsize 36 -fill #00ee00 -annotate +10+10 "by @ten_forward" conv/$f
 </code> </code>
  
行 29: 行 59:
 convert -draw 'rectangle 200,1640 490,2095' in out convert -draw 'rectangle 200,1640 490,2095' in out
 </code> </code>
 +
 +===== 切り抜き =====
 +
 +hellolive
 +
 +<code>
 +convert Pic02491.png -crop 1100x1987+192+154 test.png
 +</code>
 +
 +左上から2160x2160で切り抜き
 +
 +<code>
 +magick $f -gravity northwest -crop 2160x2160+0+0 conv/$f
 +</code>
 +
 +===== グレースケール変換 =====
 +
 +<code>
 +magick test.png -colorspace Gray gray_colorspace.png
 +</code>
 +
 +===== 回転 =====
 +
 +<code>
 +magick hoge.jpg -rotate 90 fuga.jpg
 +</code>
 +
 +===== コラージュ =====
 +2x2, 画像間隔10px
 +
 +<code>
 +montage 2025-10-08_UNICODE_{1,2,3,4}.jpg -tile 2x2 -geometry +10+10 conv/2025-10-08_UNICODE_1.jpg
 +</code>
 +
  
  • imagemagick/imagemagick.1645118444.txt.gz
  • 最終更新: 2022/02/17 17:20
  • by tenforward