jontait2, you're right, it was outputting essentially what I intended and those were red herrings. The reason I'd like to add the stroking commands is that I'm dealing with scans of hand drawn maps. Some of the area boundary lines develop small gaps in the thresholding process and I'm thinking this may improve the output.
The issue seems to be that the TIFF is multi-page and the wrong layer is being selected for the drawable. I had switched the selection from:
(drawable (car (gimp-image-get-layer-by-name image "Background")))
to:
(drawable (car (gimp-image-get-active-layer image)))
The correct layer *should* be "Background". Oddly, switching back to the original drawable selection command results in a set of new (and actual) failures:
(GIMP-bin:2317): Gimp-Core-CRITICAL **: gimp_object_get_name: assertion 'GIMP_IS_OBJECT (object_typed)' failed
(GIMP-bin:2317): LibGimpConfig-CRITICAL **: gimp_config_duplicate: assertion 'GIMP_IS_CONFIG (config)' failed
(GIMP-bin:2317): Gimp-Paint-CRITICAL **: gimp_paint_core_stroke_boundary: assertion 'bound_segs != NULL && n_bound_segs > 0' failed
(GIMP-bin:2317): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
batch command experienced an execution error:
Error: ( : 2) Procedure execution of gimp-edit-stroke failed
Should I just try some way of splitting the TIFF pages in advance? Many thanks!