The following procedure can be used to add a gif image file to a stand alone wikit database (i.e. .tkd file). Note that images may only be viewed using the Tk interface currently. Support for the web (CGI) interface is in the suggestions box. '''Assumptions''' * a directory named '''dir''' exist * a wikit database named '''wikit.tkd''' is in the directory (see [http://mini.net/tcl/4856] for information on how to create a database) * a gif image file named '''image.gif''' is in the directory '''Procedure''' * Open the wikit database using wikit.kit application. * Edit the page where the image is to added and add the following text [[http://image.gif]] where the image is to appear. * Save the changes to the page and exit wikit * Run the following command in the '''dir''' directory. % wikit -images scan wikit.tkd Scanning 17 wiki pages... 1 urls added, 0 urls deleted * Then run this command in the '''dir''' directory. % wikit -images local wikit.tkd 1 local images copied * The image is now loaded into the wikit database (so try it out :-) '''wikit -image Options''' tclkit wikit.kit -images scan wikit.tkd: Scans all pages, updating an "image cache" inside the wikit.tkd datafile (this does not fetch images, it just updates that cache) repeated calls are incremental: adds new / deletes unused items tclkit wikit.kit -images list wikit.tkd: Lists all entries currently in the image cache, with fetch/file dates tclkit wikit.kit -images get wikit.tkd: This goes through the image cache and fetches any entries which have not been successfully fetched before (only images <= 100 Kb) tclkit wikit.kit -images local wikit.tkd: Goes through caches, storing all images it can find in [[pwd]], i.e. updates and replaces what is in the cache with local file copies (can be used to add/replace, and to store images > 100 Kb) tclkit wikit.kit -images clear wikit.tkd: Clear the image cache (does not compact the wikit datafile, but space will be re-use [Tom Krehbiel] ---- How would you do it on windows? I got the following error when I tried it on windows. couldn't execute "C:\dir\wikit": invalid argument [YekSoon] ''You could do it in a Tcl-script, I'm working on that myself. If you have access to a *nix system you can do the actual scan and add there and just copy the wikit.tkd file to your windows box. It is a metakit database-file and as such platform independent. - [VL]'' 30sep03 [jcw] - You could also use tclkitsh.exe, the command-line version of tclkit, and type "tclkitsh wikit.kit -images list wikit.tkd", etc. ---- [Category Wikit]