
Dear EDU-SIG: Here is a question from a client I'm teaching a beginning Python class to. If you have a quick answer it would be *greatly* appreciated! -- Chuck Allison

Oops - wrong forum. Sorry. Chuck Allison wrote:
Dear EDU-SIG:
Here is a question from a client I'm teaching a beginning Python class to. If you have a quick answer it would be *greatly* appreciated!
-- Chuck Allison
------------------------------------------------------------------------
Subject: Quick Question From: Johan Jeffery <johan_jeffery@symantec.com> Date: Wed, 15 Jun 2005 18:30:55 -0600 To: chuck@freshsources.com
To: chuck@freshsources.com
Quick question since the next class isn't until Monday. Do you know of any modules in Python that can convert a bitmap from one format to another, specifically .BMPs to .JPGs?
We have a need to do this conversion. Our developers have grown fond of screen shots as they give much information that may not be written up in a bug. However, our most common tool for getting a screen shot is a screen capture in VMWare which only does .BMP format files. They are about 2.3 Mb apiece. Where as a .JPG of the same thing is only about 34 - 175 Kb. The space savings is significant. So, we need a way of efficiently convert these screenshots. This class presents me an opportunity to create a utility to do this for us. Hence, the question.
Thanks!
- Johan
------------------------------------------------------------------------
_______________________________________________ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig

The standard python way to do this is via the Python Imaging Library (PIL)[1]. The standard unix way of doing this is via ImageMagick[2], which can easily be called from python if it is installed. There are other ways which are more platform dependent. HTH. --Dethe [1] http://www.pythonware.com/products/pil/ [2] http://www.imagemagick.org/script/index.php On 15-Jun-05, at 7:56 PM, Chuck Allison wrote:
Dear EDU-SIG:
Here is a question from a client I'm teaching a beginning Python class to. If you have a quick answer it would be *greatly* appreciated!
-- Chuck Allison
From: Johan Jeffery <johan_jeffery@symantec.com> Date: June 15, 2005 5:30:55 PM PDT (CA) To: chuck@freshsources.com Subject: Quick Question
Quick question since the next class isn't until Monday. Do you know of any modules in Python that can convert a bitmap from one format to another, specifically .BMPs to .JPGs?
We have a need to do this conversion. Our developers have grown fond of screen shots as they give much information that may not be written up in a bug. However, our most common tool for getting a screen shot is a screen capture in VMWare which only does .BMP format files. They are about 2.3 Mb apiece. Where as a .JPG of the same thing is only about 34 - 175 Kb. The space savings is significant. So, we need a way of efficiently convert these screenshots. This class presents me an opportunity to create a utility to do this for us. Hence, the question.
Thanks!
- Johan
_______________________________________________ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig
What dark passions and ancient evils have been held in check by the grim totalitarianism of the profit motive? --Bruce Sterling
participants (2)
-
Chuck Allison
-
Dethe Elza