Text to a PNG on App Engine (Python)
Posted
by Bemmu
on Stack Overflow
See other posts from Stack Overflow
or by Bemmu
Published on 2010-03-12T08:28:44Z
Indexed on
2010/03/12
8:47 UTC
Read the original article
Hit count: 196
Note: I am cross-posting this from App Engine group because I got no answers there.
As part of my site about Japan, I have a feature where the user can get a large PNG for use as desktop background that shows the user's name in Japanese. After switching my site hosting entirely to App Engine, I removed this particular feature because I could not find any way to render text to a PNG using the image API.
In other words, how would you go about outputting an unicode string on top of an image of known dimensions (1024x768 for example), so that the text will be as large as possible horizontally, and centered vertically? Is there a way to do this is App Engine, or is there some external service besides App Engine that could make this easier for me, that you could recommend (besides running ImageMagick on your own server)?
© Stack Overflow or respective owner