From dom@earth.li Sat Jul 10 23:11:13 2004 From: Dominic Hargreaves To: openguides-dev@lists.openguides.org Subject: [OpenGuides-Dev] Photo/image framework Date: Sat, 10 Jul 2004 23:11:12 +0100 Message-ID: <20040710221112.GX30964@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8940070868229858440==" --===============8940070868229858440== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Since people are starting to want to contribute photos the Oxford Guide, I've been thinking about what level of integration is appropriate with OpenGuides. My initial plan is as follows: Config var image_base is a partial URL defining where to find images. Standard subdir scheme $image_base/thumb and $image_base/normal for a simple two-size hierachy of images. A macro #EMBED_PHOTO [imagename] or similar, which would do, approximately: Image for $node_name. A new special field in the node "photo" which would be used to define the "primary" image for the node. This could be automagically displayed, if present, for example to the right of the metadata in the standard web layout. Photo uploading I am leaving as a separate problem for now. If people have any particular ideas I'd be interested in them, but the way I see it the photos probably want to be reviewed rather than made public straight away, and there is no particular need to have uploading integrated into OpenGuides itself. I may investigate DAV, or a simple CGI script for POSTing files. An example hierachy is . Note that I also have a full/ directory for the full-size photos (useful for "remastering" the guide into print, for example) and a simple note of who took the photo. Any comments before I start trying to code this? Cheers, Dominic. --===============8940070868229858440==-- From alessio@sevenseas.org Sun Jul 11 10:27:25 2004 From: Alessio Bragadini To: openguides-dev@lists.openguides.org Subject: Re: [OpenGuides-Dev] Photo/image framework Date: Sun, 11 Jul 2004 11:27:17 +0200 Message-ID: <1089538036.1887.1102.camel@musa> In-Reply-To: <20040710221112.GX30964@tirian.magd.ox.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1855582107242640718==" --===============1855582107242640718== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Sun, 2004-07-11 at 00:11, Dominic Hargreaves wrote: > Photo uploading I am leaving as a separate problem for now. If people > have any particular ideas I'd be interested in them I am starting to use CGI::Uploader and it's a very interesting package. It generates thumbnails on the fly (using ImageMagick and its Perl package) and stores all information in a database. It's kind of a heavyweight solution, though. http://search.cpan.org/~markstos/CGI-Uploader-0.76_02/ -- Alessio Bragadini Sevenseas.org Hacking Community --===============1855582107242640718==--