diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1999-07-20 09:14:59 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1999-07-20 09:14:59 +0000 |
commit | 9cb6e7837454112f7ba11c80f3d65b1a3b195404 (patch) | |
tree | 2add4bac14b440e81affabb40612ec25cd43d62b /graphics/gridpix/pkg-message | |
parent | bd96be665b26de65fa69b5436020fb69eb2ff28c (diff) |
Notes
Diffstat (limited to 'graphics/gridpix/pkg-message')
-rw-r--r-- | graphics/gridpix/pkg-message | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/graphics/gridpix/pkg-message b/graphics/gridpix/pkg-message new file mode 100644 index 000000000000..fa2987c49e4c --- /dev/null +++ b/graphics/gridpix/pkg-message @@ -0,0 +1,41 @@ +Here's an example to get started. Let's assume you have an image "mypic.jpg". + +(1) djpeg -ppm mypic.jpg | gridpack -o /usr/local/www/data/gridpix/mypic.gpx + +(2) Make sure you have CGI scripts with symlinks enabled on your web server. + For Apache, you need something like + +ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" + +<Directory "/usr/local/www/cgi-bin"> + AllowOverride None + Options ExecCGI FollowSymLinks + Order allow,deny + Allow from all +</Directory> + + in your /usr/local/etc/apache/httpd.conf file. + +(3) Use a URL like this to refer to the image: + + http://hostname/cgi-bin/getimg2.cgi?mypic&720&576 + + 720 and 576 are the width and height of the GridPix window. The default + tile size is 144 by 144 so choose multiples of 144. + +(4) To pop up a new window, use something like: + +=== +<script language="JavaScript"> +<!-- +function gridpix(pic) { + window.open('/cgi-bin/getimg2.cgi?' + pic + '&720&576', + 'gridpix', + 'toolbar=no,status=yes,width=850,height=650,directories=no,scrollbars=no,location=no,resize=yes,menubar=no'); +} +// --> +</script> +<a href="javascript:gridpix('mypic')">click here</a> +=== + +For more info, please read the documents in /usr/local/share/doc/gridpix. |