script gimp-file-save all

Postez ici vos scripts Bash, Python, etc.
Répondre
capitaine-lafouine
Messages : 61
Enregistré le : sam. 5 mars 2022 16:16
Localisation : planette bleue a coté de mars

script gimp-file-save all

Message par capitaine-lafouine »

salut
ce script ne fonctionne plus, il sert dans gimpa enregistrer toutes les images ouverte en une fois.
peut être une idée...
merci d'avance
; This program is free software
; you can redistribute it and/or modify
; it under the terms of the GNU General Public
; License as published by
; the Free Software Foundation
; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.

(define (script-fu-save-all-images)
(let* ((i (car (gimp-image-list)))
(image))
(while (> i 0)
(set! image (vector-ref (cadr (gimp-image-list)) (- i 1)))
(gimp-file-save RUN-NONINTERACTIVE
image
(car (gimp-image-get-active-layer image))
(car (gimp-image-get-filename image))
(car (gimp-image-get-filename image)))
(gimp-image-clean-all image)
(set! i (- i 1)))))

(script-fu-register "script-fu-save-all-images"
"<Image>/File/Save ALL"
"Save all opened images"
"Saul Goode"
"Saul Goode"
"11/21/2006"
""
)

~/.gimp-<2.10.30>/scripts
Portable lenovo
Kernel linux 5.15.0-48
version #54=Ubuntu smp
C Library Gnu c library ubuntu glibc 2.35 oubuntu 3.1 2.35
linux mint vanessa

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: script gimp-file-save all

Message par arghlub »

salut,
t'as essayé imageMagick ???
sinon passe à un logiciel plus sérieux comme Krita (je suis graphiste pro), mais pas sûr qu'il fasse ses opérations, le mieux c'est de passer par le terminal.
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Répondre