Tkinter.Canvas saved as JPEG?

E

Erik Johnson

I want to draw some simple (dynamic) graphs and get these saved as a
JPEG file to reference in a web link. I am aware of PIL (Python Image
Library), but unfortunatley my system does not have it built. After looking
at the README for it and seeing it depends on two separate packages to
support JPEG and TrueType font, I though maybe there was an easier way.

Tkinter is currently built and working on my Python 2.2.2 installation.
Is there some simple path to take a Tkinter.Canvas with some stuff drawn on
it and get it into a file as a JPEG (without anything from PIL, preferably
just using standard libraries)? (I have John Grayson's book. I haven't read
the whole thing but I'm not having much luck readily finding a way to do
this, though it may be there somewhere. Feel free to cite page numbers there
if that helps.)

Thanks for taking the time to read my post. :)

-ej
 
J

Jeff Epler

The Tkinter Canvas directly supports saving to postscript format, but
not any standard bitmap format (or even modern vector formats like pdf
or svg).

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCDAKRJd01MZaTXX0RApnKAKCTfV3pIeW68QydMbQ3EFYcpBdCjgCghObA
7lqEL7SuT4queJLOCrAXhY4=
=kXW3
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top