Skip to content

Instantly share code, notes, and snippets.

@DQNEO
Created March 26, 2014 09:39
Show Gist options
  • Save DQNEO/9779758 to your computer and use it in GitHub Desktop.
Save DQNEO/9779758 to your computer and use it in GitHub Desktop.
[ImageMagick]convertコマンドで写真に文字を入れる
$ convert -pointsize 300 -gravity south -font Times-Roman -annotate 0 "aaaaa" -fill red flower.jpg out.jpg
# -pointsize 文字の大きさ
# -gravity 文字の位置
# -font フォント
# -annotate 数値:文字の傾き 文字列:テキスト
# -fill 文字の色
@DQNEO
Copy link
Author

DQNEO commented Mar 26, 2014

ハワイ語でも試してみる→ Hīhīwai

@DQNEO
Copy link
Author

DQNEO commented Mar 26, 2014

いけた。
$ convert -pointsize 300 -gravity south -font Times-Roman -annotate 0 "Hīhīwai" -fill red flower.jpg out.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment