Siderevs

November 30, 2005

Obtaining the histogram of an image with Python

To obtain the histogram of an image with Python using the PIL there is a specific function called histogram.

So, this code just create a grafic of that histogram.

Call it this way:

C:\python>python histogram.py inputfile.jpg output.jpg

The image could be .gif, .png, and other formats supported by the PIL

The code is here

Here is a histogram of this picture.



histogram

Labels:

November 26, 2005

Batch watermarking images with Python

I was wondering how to put a mark on my photos, i mean all the photos from a directory in my hard drive (i'm a little bit lazy :P)

So i read about the PIL (Python Imaging Library) and found this script: Watermarks with PIL then i extend it to do batch processing.

Use it this way:

c:\python\python batchsign.py YOURSIGN


signed image


It will create a signed copy of your files. FILENAME_signed.jpg

You have to put the jpg files to sing in the same directory as the script.

Hope you find it useful

See it here

Labels:

flickrBuddy 0.1

This tool allows you to see and download the most interesting pictures of your contacts in flickr.

flickrBuddy 0.1



No source code for the moment -i need to figure out how to do some things with threads...

You'll need the .Net Framework 2.0 to run it

The tool page is here

Labels:

November 04, 2005

Octubre

No se por qué... los octubres de mi vida siempre han sido muy dolorosos

Labels: