LoginSignup
0
0

More than 5 years have passed since last update.

ImageMagick > textを画像にする > convert -background lightblue -fill blue -pointsize 72 label:Anthony label.gif

Last updated at Posted at 2017-02-27
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 14.04 LTS desktop amd64
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v8.0
Python 2.7.6
IPython 5.1.0 -- An enhanced Interactive Python.
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
ImageMagick 6.7.7-10 2016-06-01 Q16 http://www.imagemagick.org

任意のテキストをpngなどの画像にしたい。

http://www.imagemagick.org/Usage/text/
のBasic Labelsのコマンドで画像にすることができた。

v0.1

Candiceというフォントはないようなので、以下のコマンドとした。

$ convert -background lightblue -fill blue -pointsize 72 label:Anthony label.gif
$ eog label.gif

qiita.png

v0.2 > 画像サイズ指定(-size) + 文字をセンターに(-gravity)

$ convert -background lightblue -fill blue -size 150x150 -gravity center -pointsize 36 label:Anthony label.gif

qiita.png

0
0
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
0
0