After lots of reading and experimentation, I managed to figure out how to get an image to load from the #images table in the Directory Tool database. The key was to have a #template file, which I had deleted earlier in my development of the tool website. Once I replaced the template, I was able to use the imageRef macro to load an image from the #images table. To import an image, I did the following:
- Created the image I wanted to capture
- Did Command-Shift-4 to activate a crosshair cursor, then surrounded the area of the screen that I wanted to capture
- When I release the mouse button, a screen capture of the area was performed and saved to the Desktop as a TIF file. Also, garbage was written to the outline, I need to be ready to close the file as soon as possible after the screen capture
- Use Graphic Converter to create a GIF version of the file
- Bring the DirectoryTool database forward, then open the #images table
- Do Tools -> StaticSites -> Load Image File, then navigate to and select the GIF file to be imported
- Use the imageRef macro to load the file in a tool web page
- Rebuild Tool
6:13:37 AM
|
|