Comments on: pure green http://blodgett.doof.me.uk/2010/02/08/pure-green/ place of blodgett Mon, 15 Feb 2010 17:44:17 +0000 hourly 1 https://wordpress.org/?v=5.4.2 By: blodgett http://blodgett.doof.me.uk/2010/02/08/pure-green/comment-page-1/#comment-768 Mon, 15 Feb 2010 17:44:17 +0000 http://blodgett.doof.me.uk/?p=1029#comment-768 > 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

]]>
By: cakesniffer http://blodgett.doof.me.uk/2010/02/08/pure-green/comment-page-1/#comment-765 Sun, 14 Feb 2010 21:52:39 +0000 http://blodgett.doof.me.uk/?p=1029#comment-765 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?

]]>
By: blodgett http://blodgett.doof.me.uk/2010/02/08/pure-green/comment-page-1/#comment-764 Sat, 13 Feb 2010 14:45:02 +0000 http://blodgett.doof.me.uk/?p=1029#comment-764 now updated! avec handling of error and multiple input directories, and proper numbering. and symlinks.

turns out linking also unix only. sry.

]]>