[Gimp-user] problem with image conversion script
Pere Pujal i Carabantes
pere at fornol.no-ip.org
Mon Apr 7 03:59:23 PDT 2008
Hola Octavi!
El dg 06 de 04 del 2008 a les 19:31 +0000, en/na Octavi Fors va
escriure:
> I want to convert a FITS image into PPM in batch mode.
> Grabbing code from different sites I end up to a source script version
> like this:
>
> (define (fits-to-ppm infile
> outfile)
> (let* ((image (car (file-fits-load
> RUN-NONINTERACTIVE
> infile
> infile
> )
> )
; Here you lack a ) closing (image
> (drawable (car (gimp-image-get-active-layer image))))
>
> (file-ppm-save RUN-NONINTERACTIVE image drawable outfile outfile 0)
> (gimp-image-delete image)
> )
> )
Here you should remove the ) added before
> )
>
> Thanks in advance,
>
> Octavi.
Hope this helps
Pere
More information about the Gimp-user
mailing list