Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5530
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Subject | Re: Image processing to auto adjust colors in python ? |
| Date | 2011-05-16 19:02 +0100 |
| Message-Id | <pan.2011.05.16.18.01.26.968000@nowhere.com> |
| Newsgroups | comp.lang.python |
| References | <4bb21cd6-6ece-4341-8231-18818e942ab3@y19g2000yqk.googlegroups.com> |
| Organization | Zen Internet |
On Mon, 16 May 2011 10:11:43 -0700, goldtech wrote: > I'm processing thumbnails with python but one thing I need to do is to > auto-adjust an image for the "best" colors. I am using ffmpeg to get > thumbs three seconds into a video, sometimes the image is too dark. > Normally I'd go into something like the windows program Irfan View and > do "Auto Adjust Colors", but I need a comand-line solution to > processes hundreds of images in a loop. I'm using Ubuntu and Python. > Is there an image precessing package i could use to do this? PIL (Python Imaging Library) is the most widely-used general-purpose image library. For more advanced tasks, the usual solution is to use PIL to load/save images and do the processing with NumPy/SciPy (array-processing library). But you might want to check whether either ImageMagick (e.g. "convert -equalize ...") or NetPBM (e.g. pnmhisteq) do what you want. If they do, it will probably be the simplest solution.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Image processing to auto adjust colors in python ? goldtech <goldtech@worldpost.com> - 2011-05-16 10:11 -0700 Re: Image processing to auto adjust colors in python ? Nobody <nobody@nowhere.com> - 2011-05-16 19:02 +0100
csiph-web