diff options
| author | Przemysław R. Pietraszczyk <przem@prymula.ct8.pl> | 2026-07-27 09:46:26 +0200 |
|---|---|---|
| committer | Przemysław R. Pietraszczyk <przem@prymula.ct8.pl> | 2026-07-27 09:46:26 +0200 |
| commit | da238a87d114c02bedeac46c0fe263ac61ce5244 (patch) | |
| tree | 45bca052753c4c971ab7fe2a81ca97aebf696686 | |
| parent | 8061c842988aacb3693a30162c4f936c9de1396a (diff) | |
2.260727-0
| -rwxr-xr-x | bash/run.sh | 14 | ||||
| -rw-r--r-- | script-fu/SNAPSHOTS/przem-apply-waves-effect-v3x.scm (renamed from script-fu/3.x/przem-apply-waves-effect-v3x.scm) | 0 | ||||
| -rw-r--r-- | script-fu/SNAPSHOTS/przem-low-detail-v3x.scm (renamed from script-fu/3.x/przem-low-detail-v3x.scm) | 0 | ||||
| -rw-r--r-- | script-fu/SNAPSHOTS/przem-soft-focus-noninteractive-v3x.scm (renamed from script-fu/3.x/przem-soft-focus-noninteractive-v3x.scm) | 25 | ||||
| -rw-r--r-- | script-fu/changelog.md | 3 |
5 files changed, 32 insertions, 10 deletions
diff --git a/bash/run.sh b/bash/run.sh new file mode 100755 index 0000000..bdc4d59 --- /dev/null +++ b/bash/run.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Używamy bezpiecznego czytania plików zamiast 'ls' (odporne na spacje w nazwach) +for file in *.jpg; do + if [ "$file" = "DSC01903.jpg" ]; then + # GIMP 3 wymaga dokładnego parsowania ciągów znaków + # Przekazujemy pełną ścieżkę jako tekst do nowego skryptu dwuargumentowego + gimp -i --batch-interpreter plug-in-script-fu-eval \ + -b "(przem-soft-focus-noninteractive-v3x \"$file\")" \ + -b "(gimp-quit 0)" + + # mv "$save_name" SAVE + fi +done diff --git a/script-fu/3.x/przem-apply-waves-effect-v3x.scm b/script-fu/SNAPSHOTS/przem-apply-waves-effect-v3x.scm index 1059557..1059557 100644 --- a/script-fu/3.x/przem-apply-waves-effect-v3x.scm +++ b/script-fu/SNAPSHOTS/przem-apply-waves-effect-v3x.scm diff --git a/script-fu/3.x/przem-low-detail-v3x.scm b/script-fu/SNAPSHOTS/przem-low-detail-v3x.scm index 35f678d..35f678d 100644 --- a/script-fu/3.x/przem-low-detail-v3x.scm +++ b/script-fu/SNAPSHOTS/przem-low-detail-v3x.scm diff --git a/script-fu/3.x/przem-soft-focus-noninteractive-v3x.scm b/script-fu/SNAPSHOTS/przem-soft-focus-noninteractive-v3x.scm index 619a9e1..a11531a 100644 --- a/script-fu/3.x/przem-soft-focus-noninteractive-v3x.scm +++ b/script-fu/SNAPSHOTS/przem-soft-focus-noninteractive-v3x.scm @@ -4,21 +4,26 @@ ; ver. 2025-06-19 ;(define (przem-soft-focus-noninteractive-v3 basout savename) -(define (przem-soft-focus-noninteractive-v32 ask-fileglob) +(define (przem-soft-focus-noninteractive-v3x ask-fileglob) (let* ( - (thefiles (cadr (file-glob ask-fileglob 0))) - (baseout (car thefiles)) - (savename (cad thefiles)) - (image (car (gimp-file-load RUN-NONINTERACTIVE baseout savename))) + (glob-result (cadr (file-glob ask-fileglob 0))) + (pattern glob-result) + ;(savename (cadr glob-result)) + + ;; Inicjalizacja zmiennych obrazu (tylko jeśli plik istnieje) + (image (gimp-file-load RUN-NONINTERACTIVE pattern pattern)) + + ;(image (car (gimp-file-load RUN-NONINTERACTIVE baseout savename))) (selected-layers-array (car (gimp-image-get-selected-layers image))) - (num-selected-layers vector-length selected-layers-array) - ;(width (car (gimp-image-get-width image))) - ;(height (car (gimp-image-get-height image))) + (num-selected-layers (vector-length selected-layers-array)) + (width (car (gimp-image-get-width image))) + (height (car (gimp-image-get-height image))) (active-layer 0) (blur-radius 100) (opacity 100) ) + (gimp-message (string-append "Wartość pattern to: " ask-fileglob)) ; lub użyj samego pattern jeśli podejrzewasz że to string ;(gimp-message (string-append \"baseout: \" (number->string baseout))) ;(gimp-message (string-append \"savename: \" (number->string savename))) @@ -32,7 +37,7 @@ (gimp-drawable-merge-new-filter active-layer "gegl:gaussian-blur" RUN-NONINTERACTIVE LAYER-MODE-REPLACE 1.0 "std-dev-x" blur-radius "std-dev-y" 0.0 "filter" "auto") ; Zmień tryb mieszania na Overlay lub Screen - (gimp-layer-set-mode active-layer OVERLAY-MODE) + (gimp-layer-set-mode active-layer LAYER-MODE-OVERLAY) ; Dostosuj przezroczystość (gimp-layer-set-opacity active-layer opacity) @@ -43,7 +48,7 @@ ;(merged-layer (car (gimp-image-merge-down image active-layer CLIP-TO-IMAGE))) ;) ;(file-tiff-save RUN-NONINTERACTIVE image active-layer savename baseout 1) ; 1 - lZW - (gimp-file-save RUN-NONINTERACTIVE image active-layer savename baseout) + ;(gimp-file-save RUN-NONINTERACTIVE image active-layer savename savename) (gimp-image-undo-enable image) ;) diff --git a/script-fu/changelog.md b/script-fu/changelog.md index e849dd4..d9e0f4e 100644 --- a/script-fu/changelog.md +++ b/script-fu/changelog.md @@ -1,3 +1,6 @@ +# [2.260727-0] +* Dodanie katalogu SNAPSHOTS dla fitrów prealpha + # [2.260725-1] przem-apply-waves-effect-v3x.scm * Nie faluje obrazu |
