Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gegl filters in batch processing
#1
I am trying to call a gegl edge detect filter repeatedly in a while loop as here


Code:
        (while (not (null? filepaths))        
                       ;some stuff    
                       (gimp-drawable-merge-new-filter
            2                         ; The drawable to apply the filter to
            "gegl:edge"                        ; The name of the GEGL operation
            0                                  ; The merge-mode (0 for normal)
            LAYER-MODE-REPLACE                 ; The layer mode (e.g., replace, normal, etc.)
            100.0                              ; The opacity (0.0 to 100.0)
            "amount" 2.0                       ; Parameter: amount of edge detection
            "border-behavior" "none"           ; Parameter: how to handle image borders
            "algorithm" "sobel"                ; Parameter: the edge detection algorithm
            )
                        ;some more stuff
          )
 it works but only on the first image in the batch. Is there something I need to do to get it to work on all the images?
Reply


Messages In This Thread
gegl filters in batch processing - by pyjamaslug - 08-10-2025, 08:18 PM
RE: gegl filters in batch processing - by Ofnuts - 08-11-2025, 08:34 AM
RE: gegl filters in batch processing - by teapot - 08-12-2025, 02:48 AM
RE: gegl filters in batch processing - by Ofnuts - 08-11-2025, 08:05 PM

Forum Jump: