[Image-SIG] Image processing to auto adjust colors in python ?

Charlie Clark charlie.clark at clark-consulting.eu
Mon May 16 21:52:02 CEST 2011

Am 16.05.2011, 21:08 Uhr, schrieb Lee Gold <leegold at operamail.com>:

> Hi,
> 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 command-line solution to
> processes hundreds of images in a loop. I'm using Ubuntu and Python.
> Is there a way in PIL I could do this?

Hi Lee,

assuming you can write the correct image processing algorithm or find a  
suitable filter you can do this in PIL. However, you mind try applying  
filters directly in ffmpeg before you create a thumbnail.

Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

More information about the Image-SIG mailing list