Forum OpenACS Q&A: Response to photodb html conversion

Collapse
Posted by Hans Gaasenbeek on
I think it is not clear what Ben Koot means. In my view, he needs a 'canned html'-generator, not an image convertor. It should be fairly easy for anyone knowing tcl to write a script that automatically embeds the filename (in the filesystem) into a small piece of html, just like Greenspun did (I handicapped the html because otherwise the image shows up, even though I say this is 'plain text'):

a href=http://www.photo.net/photo/pcd0278/getty-center-bookstore-line-110.tcl
img src=http://www.photo.net/photo/pcd0278/getty-center-bookstore-line-110.1.jpg
photo courtesy  href="http://philip.greenspun.com/Philip Greenspun

You don't need Image Magick for that, but in the photodb images are allready resized by it, so it is possible to make links to thumbnails and full-size pictures as well.