[wxPython-users] Open PIL image with less quality
Christopher Barker
Chris.Barker at noaa.gov
Tue May 8 10:36:20 PDT 2007
Mariano Di Felice wrote:
> OK, guys, but if I have a non-jpeg or non-jfif images?? ex: bmp or gif??
then you may well be out of luck. I'm no expert, but I think you'll have
to decode those entirely, then reduce them. Actually, that's just for
GIF, I think BMP is uncompressed, which means it's a poor choice for
huge images anyway, but you could, in theory, read every pixels, and
build an image. Kind of hard to write that code efficiently in Python,
though.
It's worth a look at the PIL docs and see what you can find.
I've lost track -- what limitations are you running into here? Memory?
speed? It's actually pretty darn fast these days to read a big image and
re-size it -- if it fits in memory anyway.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list