Portál AbcLinuxu, 12. května 2025 12:41
(define (batch-unsharp-mask-pl filename quality smoothing optimize progressive comment subsmp baseline restart dct out_name radius amount threshold) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image)))) (plug-in-unsharp-mask RUN-NONINTERACTIVE image drawable radius amount threshold) (file-jpeg-save RUN-NONINTERACTIVE image drawable out_name filename quality smoothing optimize progressive comment subsmp baseline restart dct) (gimp-image-delete image)))priklad -
gimp -i -b '(batch-unsharp-mask-pl "img_9116a.jpg" 0.95 0 1 0 "nothing" 1 1 0 2 "dscg.jpg" 5.0 0.52 0)' '(gimp-quit 0)'a vse bezelo jak melo (toto je jen ukazka, procesuju to v perlu, aby to upravilo vsechny fotky v adresaru) od verze 2.4 to nicmene vraci
/usr/bin/gimp -i -b '(batch-unsharp-mask-pl "img_9116a.jpg" 0.95 0 1 0 "nothing" 1 1 0 2 "dscg.jpg" 5.0 0.52 0)' '(gimp-quit 0)' GIMP-Error: Opening '/home/mahdi/perl/resize/(gimp-quit 0)' failed: No such file or directory No batch interpreter specified, using the default 'plug-in-script-fu-eval'. batch command: executed successfully.problem neni, ze by to neudelalo co melo, ale po prvni fotce se sekne a nechce dal ... nema nekdo tuseni co se zmenilo? prosel jsem dokumentaci ke vsem fcim co pouzivam a podle "Procedure Browseru" se nic nezmenilo. diky, mahdi
'(gimp-quit 0)'
treba dať tiež parameter -b
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.