diff options
author | Przemysław R. Pietraszczyk <przem@prymula.ct8.pl> | 2025-07-14 16:48:37 +0200 |
---|---|---|
committer | Przemysław R. Pietraszczyk <przem@prymula.ct8.pl> | 2025-07-14 16:48:37 +0200 |
commit | e400dc5cd68e001cdfa7ce86cb11c30106c5c832 (patch) | |
tree | f6807829c861cac7a40c31d1dfcfcf156627e85b | |
parent | 9f45a8373e25cf259e56edf7aefa66eefaa7226c (diff) |
cleanup snapshot
-rw-r--r-- | script-fu/snapshot/helos-40.scm | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/script-fu/snapshot/helos-40.scm b/script-fu/snapshot/helos-40.scm deleted file mode 100644 index 0d9f917..0000000 --- a/script-fu/snapshot/helos-40.scm +++ /dev/null @@ -1,70 +0,0 @@ -(define (script-fu-helios-40-effect - img - drawable - blur-amount - warmth-amount - vignette-strength - bloom-effect) - (gimp-image-undo-group-start img) - - ; Zapisz oryginalną selekcję - (let* ((orig-selection (car (gimp-selection-save img)))) - - ; Dodaj warstwę dla efektów - (let* ((helios-layer (car (gimp-layer-copy drawable FALSE)))) - (gimp-image-insert-layer img helios-layer 0 -1) - (gimp-item-set-name helios-layer "Helios-40 Effect") - - ; Efekt ciepłych tonów - (if (> warmth-amount 0) - (begin - (gimp-color-balance helios-layer 0 TRUE 0 warmth-amount 0) - (gimp-color-balance helios-layer 1 TRUE warmth-amount 0 0))) - - ; Lekkie rozmycie dla charakterystycznego looku - (if (> blur-amount 0) - (plug-in-gauss 1 img helios-layer blur-amount blur-amount 0)) - - ; Zmniejsz kontrast - (gimp-brightness-contrast helios-layer 0 -20) - - ; Dodaj winietowanie - (if (> vignette-strength 0) - (begin - (gimp-selection-all img) - (gimp-selection-feather img 100) - (gimp-selection-invert img) - (gimp-context-set-foreground '(0 0 0)) - (gimp-edit-blend helios-layer 0 0 0 100 0 0 FALSE FALSE 0 0 TRUE - vignette-strength 0 0 0 0) - (gimp-selection-none img))) - - ; Efekt bloom (dla symulacji bokeh) - (if (> bloom-effect 0) - (begin - (let* ((bloom-layer (car (gimp-layer-copy helios-layer FALSE)))) - (gimp-image-insert-layer img bloom-layer 0 -1) - (gimp-layer-set-mode bloom-layer 13) ; Tryb nakładania - Overlay - (plug-in-gauss 1 img bloom-layer (* bloom-effect 3) (* bloom-effect 3) 0) - (gimp-layer-set-opacity bloom-layer 50)))) - - ; Przywróć oryginalną selekcję - (gimp-selection-load orig-selection) - (gimp-image-remove-channel img orig-selection)) - - (gimp-image-undo-group-end img) - (gimp-displays-flush))) - -(script-fu-register "script-fu-helios-40-effect" - "<Image>/Filters/Artistic/Helios-40 Effect..." - "Symuluje charakterystyczną kolorystykę obiektywu Helios-40" - "Your Name" - "Your Name" - "2023" - "RGB*" - SF-IMAGE "Image" 0 - SF-DRAWABLE "Drawable" 0 - SF-ADJUSTMENT "Rozmycie (0-20)" '(3 0 20 1 1 0 0) - SF-ADJUSTMENT "Ciepłe tony (0-100)" '(30 0 100 1 1 0 0) - SF-ADJUSTMENT "Winieta (0-100)" '(40 0 100 1 1 0 0) - SF-ADJUSTMENT "Efekt bloom (0-5)" '(2 0 5 1 1 0 0)) |