Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gimp native batch convert?
#8
found this code also but dont see where you set the dds type?

(define (convToDDS pattern)
(define filelist (cdr (file-glob pattern 1)))
(define filelist (car filelist))
(while (not (null? filelist))
(define filename (car filelist))
(define image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
(define drawable (car (gimp-image-get-active-layer image)))
(define filename (string-append (substring filename 0 (- (string-length filename) 3)) "dds"))
(file-dds-save RUN-NONINTERACTIVE image drawable filename filename 1 1 0 0 -1 0 0 )
(set! filelist (cdr filelist))))

i know its 7 for rxgb
Reply


Messages In This Thread
gimp native batch convert? - by y2keeth - 05-22-2023, 12:39 AM
RE: gimp native batch convert? - by Ofnuts - 05-22-2023, 07:28 AM
RE: gimp native batch convert? - by y2keeth - 05-22-2023, 08:51 AM
RE: gimp native batch convert? - by y2keeth - 05-23-2023, 03:28 AM
RE: gimp native batch convert? - by Ofnuts - 05-23-2023, 12:38 PM
RE: gimp native batch convert? - by y2keeth - 05-24-2023, 04:55 AM
RE: gimp native batch convert? - by y2keeth - 05-26-2023, 01:21 AM
RE: gimp native batch convert? - by y2keeth - 05-27-2023, 05:21 AM
RE: gimp native batch convert? - by rich2005 - 05-27-2023, 07:25 AM
RE: gimp native batch convert? - by Ofnuts - 05-27-2023, 07:57 AM
RE: gimp native batch convert? - by y2keeth - 05-28-2023, 01:47 AM
RE: gimp native batch convert? - by y2keeth - 06-06-2023, 04:40 AM
RE: gimp native batch convert? - by Ofnuts - 06-06-2023, 07:04 AM
RE: gimp native batch convert? - by y2keeth - 06-07-2023, 03:06 AM
RE: gimp native batch convert? - by y2keeth - 06-08-2023, 04:19 AM
RE: gimp native batch convert? - by Ofnuts - 06-08-2023, 08:29 AM
RE: gimp native batch convert? - by y2keeth - 06-09-2023, 04:53 AM
RE: gimp native batch convert? - by Ofnuts - 06-09-2023, 08:10 AM
RE: gimp native batch convert? - by y2keeth - 06-10-2023, 03:46 AM
RE: gimp native batch convert? - by Ofnuts - 06-10-2023, 06:44 AM
RE: gimp native batch convert? - by y2keeth - 06-13-2023, 03:53 AM
RE: gimp native batch convert? - by y2keeth - 06-19-2023, 11:44 AM

Forum Jump: