Python Image Library(PIL)使って画像に半透明な文字を入力させてみた。 送信者 未分類 準備 $ virtualenv PVE $ cd PVE $ bin/pip install PIL スクリプト # -*- coding: utf-8 -*- import sys import re from datetime import date import Image, ImageDraw, ImageFont, ImageColor def usage(): print "Usage: python %s image_file [alpha] [fontsize] [fontpath]" % sys.argv[0] def draw_transparent_text(src_canvas, text, pos, font, fill, alpha): mask = I
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く