[pygtk] Image Manipulation under pyGTK

Tim Flink tim at mail.mew.co.jp
Thu Mar 29 11:50:24 WST 2007


I am new to pyGTK and I am wondering it is possible to use it to
manipulate images without creating windows. Specifically I want to put
anti-aliased Japanese text on top of already existing images. I have
looked for information on doing this, but so far I have only been able
to find information on creating dialog buttons and I was hoping that I
could find more information here.

Is it possible to use pyGTK to write anti-aliased text over an image and
save it to disk?

Is there a reasonably easy way to do this that is also fast?

Will it work under win32 (specifically WindowsXP)?

I realize that both PIL and pycairo would likely be easier to use, but I
have had problems with both tools. When using Japanese fonts, PIL has
been mangling the output unless I use specific font sizes. Pycairo
works, but the cairo dll for windows doesn't seem to support antialiased
text and I haven't been able to build a new dll that supports it. I was
under the impression that GTK does support anti-aliased text under
windows thorough Pango.

Any help would be greatly appreciated,

Tim Flink


More information about the pygtk mailing list