packages = ["pillow"] [[fetch]] from = "image" files = ["face.png"] from PIL import Image # サブフォルダ名の指定は不要 img = Image.open('face.png') # 取得したエレメントに書き込む canvas = Element('canvas') canvas.write(img)