blodgett have completed work on a most useful utility, it determine which of your pictures are most green.
vague apologies this amazing feature currently *nix-only as blodgett rather lazy with file paths
cods they are here:
http://blodgett.doof.me.uk/real/greenify.py
to use:
0) save script to disk, e.g. into home directory
1) open terminal
2) type without the quote marks the following:
“python greenify.py [image folder] [output folder]”
where the part [image folder] should be replaced by the path to the image folder you want scanned
and [output folder] should be replaced by the name of the folder you want the results in.
note! all subdirectories of [image folder] also searched!
for example, say blodgett has pictures in
/home/blodgett/pictures/artwork
and wants to put the sorted ones into a folder called ‘green’ in its home directory. blodgett would type:
python greenify.py pictures/artwork green
whereupon the folder called green would be magically created and filled with artworks, greenest first! yay!
now updated! avec handling of error and multiple input directories, and proper numbering. and symlinks.
turns out linking also unix only. sry.
Must install python-imaging before will work!
Did this but ran into another problem:
File “/usr/lib/python2.5/site-packages/PIL/Image.py”, line 1497, in split
if self.im.bands == 1:
AttributeError: ‘NoneType’ object has no attribute ‘bands’
Did some googling and apparently is a bug/feature of python-imaging 1.1.7 which can be fixed by adding im.load() before im.split(). This works!
I run program it sorted by greenness! Although I wonder does it prefer small amounts of bright green over large amounts of green in general?
> Must install python-imaging before will work!
oh, blodgett’s computorg must have had this already
> can be fixed by adding im.load() before im.split(). This works!
ta for bug! have fixed this now
> does it prefer small amounts of bright green over large
> amounts of green in general?
no. goes sort of by total green, so black stuff also ranks quite high. red stuff bring down ranking lots, cos this looks most un-green