LINUX.ORG.RU

История изменений

Исправление sdio, (текущая версия) :

Сел сейчас с хелпом по ГИМПу и накатал script-fu для этого дела

класть в ~/.gimp-2.8/scripts — появится в меню FX-Foundry/sdio

(define (script-fu-freq-decomposite image drawable) 
  (let* (
          (low-layer           0)
          (high-layer          0)
          (normal-mode         0)
          (grain-extract-mode 20)
          (grain-merge-mode   21)
        )
   (set! low-layer  (car (gimp-layer-copy drawable 1)))
   (gimp-image-insert-layer image low-layer 0 0)
   (gimp-layer-set-name low-layer "LowFreq")
   (gimp-image-set-active-layer image low-layer)
   (plug-in-gauss-iir2 0 image low-layer 10 10)
   (gimp-layer-set-mode low-layer grain-extract-mode)
   (set! high-layer (car (gimp-layer-new-from-visible image image "HighFreq")))
   (gimp-image-insert-layer image high-layer 0 0)
   (gimp-layer-set-mode low-layer normal-mode)
   (gimp-layer-set-mode high-layer grain-merge-mode)
   (gimp-desaturate-full high-lay 1)
   (gimp-image-raise-item-to-top image drawable)
   (gimp-item-set-visible drawable 0)
   (gimp-displays-flush)
  )
)

(script-fu-register
   "script-fu-freq-decomposite"
   "Frequency Decomposite"
   "Do frequency decomposite (2 layers)"
   "Sergey sdio@lor"
   "copyleft 2014"
   "16 Sep. 2014"
   ""
   SF-IMAGE "Image" 0
   SF-DRAWABLE "Drawable" 0
)

(script-fu-menu-register "script-fu-freq-decomposite" "<Image>/FX-Foundry/sdio")

Исходная версия sdio, :

Сел сейчас с хелпом по ГИМПу и накатал script-fu для этого дела

класть в ~/.gimp-2.8/scripts — появится в меню FX-Foundry/sdio

(define (script-fu-freq-decomposite image drawable) 
  (let* (
          (low-layer           0)
          (high-layer          0)
          (normal-mode         0)
          (grain-extract-mode 20)
          (grain-merge-mode   21)
        )
   (set! low-layer  (car (gimp-layer-copy drawable 1)))
   (gimp-image-insert-layer image low-layer 0 0)
   (gimp-layer-set-name low-layer "LowFreq")
   (gimp-image-set-active-layer image low-layer)
   (plug-in-gauss-iir2 0 image low-layer 10 10)
   (gimp-layer-set-mode low-layer grain-extract-mode)
   (set! high-layer (car (gimp-layer-new-from-visible image image "HighFreq")))
   (gimp-image-insert-layer image high-layer 0 0)
   (gimp-layer-set-mode low-layer normal-mode)
   (gimp-layer-set-mode high-layer grain-merge-mode)
   (gimp-desaturate-full high-lay 1)
   (gimp-image-raise-item-to-top image drawable)
   (gimp-item-set-visible drawable 0)
   (gimp-displays-flush)
  )
)

(script-fu-register
   "script-fu-freq-decomposite"
   "Frequency Decomposite"
   "Do frequency decomposite (2 layers)"
   "Sergey sdio@lor"
   "copyleft 2014"
   "16 Sep. 2014"
   ""
   SF-IMAGE "Image" 0
   SF-DRAWABLE "Drawable" 0
)

(script-fu-menu-register "script-fu-freq-decomposite" "<Image>/FX-Foundry/sdio")