[Image-SIG] Image processing to auto adjust colors in python ?
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>:
> 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?
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.
Clark Consulting & Research
More information about the Image-SIG