1
def embedd_image():
from google.appengine.api import images
img1 = images.Image('/home/ubuntu/a.png') // Here I am getting **error
img2 = images.Image('/home/ubuntu/text.png') // Here I am getting **error
composite = images.composite([(img1, 0, 0, 1.0, images.TOP_LEFT), (img2, 81, 25, 1.0, images.TOP_LEFT)], 144, 68, output_encoding=0)
return composite
**エラーがあるUnrecognized image format
のpython - AppEngineのイメージAPIのエラー
あなたは、App Engine上のアプリのルートディレクトリ外のファイルにアクセスすることができません - 結局のところ、どのように展開され、アプリケーションへのアクセスは、ホームディレクトリのでしょうか?また、これらの質問を投稿するときは、エラーの言い換えではなく、完全な例外スタックトレースを含めてください。 –