Thomas Williams <to******************@yahoo.ca> wrote:
When I use this line jpg attachment, come out darker
that it's suppose to be.
filelne = filelne + base64.decodestring(line)
Compared to what?
I can think of two possibilities. Image applications do color management
differently. So, for example, a JPEG viewed in Microsoft's default image
viewer wil look different from the same JPEG viewed in Photoshop.
Alternately, if you're running Windows, you might be writing the file out
in text-mode instead of using open('xxx.jpg','wb') to write it in binary.
--
- Tim Roberts,
ti**@probo.com
Providenza & Boekelheide, Inc.