This is a blog made using Jekyll Now.
Why are you looking at the readme? Go read the blog!
The Annotated Image Test Page is a tool for selecting images and annotating hotspots. It includes features such as cascading dropdowns for folder and file selection, a resolved path display, and JSON output for hotspot data.
- Cascading Dropdowns: Navigate through folders and select an image file.
- Resolved Path Display: View and copy the full path of the selected image.
- JSON Output: Automatically generates JSON data for hotspots, including the image file name.
The test page requires a running local Jekyll server to serve images and styles correctly.
With Docker (preferred):
docker compose upWith native Ruby/Jekyll:
bundle exec jekyll serve --livereloadOnce running, open the test page at: http://localhost:4000/annotated-image-test/
If Jekyll isn't running and you need to update
_sitemanually after editingannotated_image_test.html, run this in PowerShell from the repo root:$src = Get-Content "annotated_image_test.html" -Raw $content = $src -replace '(?s)^---.*?---\r?\n', '' # ... wrap in layout HTML and write to _site/annotated-image-test/index.html(See conversation history for the full sync command.)
- Start the local server (see above).
- Open http://localhost:4000/annotated-image-test/ in your browser.
- Use the Folder and File dropdowns to select an image, then click Load.
- Click Enable Picker, then click points on the image to pin hotspot coordinates.
- Fill in the label, description, and optional URL for each pin.
- Click Copy JSON to copy the hotspot data to the clipboard for pasting into a post.
- Source:
annotated_image_test.html - Built output:
_site/annotated-image-test/index.html - Images:
images/directory, one subfolder per project.
- Adding images: Place files in the appropriate
images/<ProjectFolder>/subfolder, then add the folder and filenames to theTREEobject near the top of the<script>block inannotated_image_test.html. - Lightbox exclusion: The picker
<img>hasclass="no-lightbox"to prevent GLightbox from intercepting clicks. Any image that should not open in the lightbox should have this class. - Rebuilding
_site: Jekyll rebuilds_siteautomatically when the server is running. If editing the file while the server is stopped, use the manual PowerShell sync command above.
For more details, visit the blog.