Image processing to auto adjust colors in python ?

G

goldtech

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 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?

thanks,

Lee G.
 
N

Nobody

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top