[Zope] Photo: somes issues and thoughts

Keith J. Farmer kfarmer@thuban.org
Thu, 3 Jan 2002 20:02:06 -0800


Also, a minor bug I just discovered in tag().  Well, less of a bug and
more of an un-caught exception:

Say you have an unrecognizeable image file (in our case, it was a
user-submitted Picture It image).  Photo doesn't know of this type, and
ends up seeing the height and width as both zero.  In the resizing
calculation, this leads to a divide-by-zero error.  A more graceful
recovery would be desireable -- perhaps a broken-image icon?

The display cache, also, could use some refinement IMHO.  I happen to
use ExtFile's SYNC setting, so that my repository reflects the hierarchy
of the ZODB.  Since Photo deposits the images in their own folders, that
would seem the ideal place, I think, for placing the temporary files,
rather than tossing them all into one directory.

I suppose it's a matter of taste -- having them all in one place is
easier for cleanup.  If kept as that, could the cache be placed in a
directory under var, rather than the repository?

Otherwise, I'm rather pleased with how Photo's working for my site.

Now if I could convert Picture It to something real..

----------
Keith J. Farmer
kfarmer@thuban.org
http://www.thuban.org