Usage, notes, Firefox limitations. also: Free, local only, offline

#1
by Andyx1976 - opened

All functions, all file handling, loading and saving happens locally and offline only. Nothing is uploaded to HF or anywhere else.
You can also download the index.html and run it locally.

Usage:

Load images and caption them. Or load images AND caption files (txt file with same name as the image) and edit them. Then export. For Firefox it's slightly less convenient (see below).
All should be fairly self explanatory. Load with the buttons or by simple drag and drop into the browser window.

When loading existing captions with the images, it will split them up into blocks on commas ( , ) and add them to the list.
Lines remain linked between the list and the captions. Edit the line in the list, it will change in all captions. Edit the line in the caption, it will add a new line to the list.

Beware, there is no cache or buffer. If you RELOAD the page, it will be empty again. BUT if you load the same images and SAVED captions again, you can basically just continue.

In Chromium based browsers loading a complete folder and exporting the txt back into it by clicking "Save to folder" works fine. Note: it may add permission to "upload" files, when loading from folder. That's just weird phrasing. here is no upload. It just means loading it into the script.
I don't know about Safari and others. Use the fallback if it doesn't. Any other function should be fine in any modern browser.

Firefox loading and exporting Restrictions - Alternatives

Due to limitations in Firefox, you can't load an entire folder into Firefox. Or export back into it. Only Chromium based browsers can (Chrome, Vivaldi, Edge).
As a fallback for Firefox and general alternative, you can load files (Images, txt) with the other button. Or drag and drop into the browser window.

When finished export the created/adjusted caption txt files as a zip (to your browsers default download directory). That's the only way for Firefox.

!!captioner gp sc1

  • Little disclaimer: this was coded using Gemini3 Pro. I put it under Apache2.0, do with it, what you want :)
Andyx1976 changed discussion title from Free, local storage, offline to Usage, notes, Firefox limitations. also: Free, local only, offline

Sign up or log in to comment