(03-04-2024, 01:16 AM)gimpygirl Wrote: I just found g'mic can do it with "extract objects"! They are extracted perfectly.
Do you know if I can make a plugin that calls g'mic and how?
Just some hints, nothing else. I do not really see that a batch operation will work.
When you find a gmic command that works, there is a button top-right that copies the command to the clip-board.
That gives
Code:
fx_extract_objects 7.3,17.7,20,50,0.3,0,0,1
and that goes into your script as
Code:
pdb.plug_in_gmic_qt (image, drawable, 1, 0, "fx_extract_objects 7.3,17.7,20,50,0.3,0,0,1"),
and an example plugin attached. Unzip it. Registers in the Tools menu.
For exporting images with numbering and the layers are in the wrong 'direction' Then Layer -> Stack -> Reverse Layer Order does what it says.
Demo of that. https://i.imgur.com/49QqHmH.mp4