RE: [Zope] Photo: somes issues and thoughts
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
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Keith J. Farmer
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.
Thanks for bringing this up. I'll do something about this, though I'm not sure exactly what yet.
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.
Are you running the latest version 1.2.3? The SYNC setting is supported in that version so that cached photos (and the original) are stored in a ZODB hierarchy matching directory.
I suppose it's a matter of taste -- having them all in one place is easier for cleanup.
Nay... it just makes a mess. ;-)
Otherwise, I'm rather pleased with how Photo's working for my site.
Glad to hear that. _______________________ Ron Bickers Logic Etc, Inc.
participants (2)
-
Keith J. Farmer -
Ron Bickers