Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5529 > unrolled thread

Image processing to auto adjust colors in python ?

Started bygoldtech <goldtech@worldpost.com>
First post2011-05-16 10:11 -0700
Last post2011-05-16 19:02 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#5529 — Image processing to auto adjust colors in python ?

Fromgoldtech <goldtech@worldpost.com>
Date2011-05-16 10:11 -0700
SubjectImage processing to auto adjust colors in python ?
Message-ID<4bb21cd6-6ece-4341-8231-18818e942ab3@y19g2000yqk.googlegroups.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 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.

[toc] | [next] | [standalone]


#5530

FromNobody <nobody@nowhere.com>
Date2011-05-16 19:02 +0100
Message-ID<pan.2011.05.16.18.01.26.968000@nowhere.com>
In reply to#5529
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web