Imagickで文字列の大きさに合わせた半透明角丸四角のプレートを描画するには、以下のコードを実行します。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja" dir="ltr"> <head> <title>sample1106(ImageMagick6.5.2)</title> </head> <body> <?php /* メッセージ(UTF-8でファイルを保存する) */ $msg = "サンプル"; /* 余白 */ $padx = 20; $pady = 5; /* 枠の色 */