Re: [Gimp-user] problem with image conversion script

2008-04-07 Thread Octavi Fors
Pere, yes! It worked. The script is: (define (fits-to-ppm infile outfile) (let* ((image (car (file-fits-load RUN-NONINTERACTIVE infile infile))) (drawable (car (gimp-image-get-active-layer image))) ) (gimp-image-convert-rgb image) (file-ppm-save RUN-NONINTERACTIVE i

Re: [Gimp-user] problem with image conversion script

2008-04-07 Thread Pere Pujal i Carabantes
Hola Octavi! El dl 07 de 04 del 2008 a les 13:27 +0200, en/na Octavi Fors va escriure: > Anyway, now the output "mask_gimp.ppm" file is generated. However, > this is a greyscale one in ASCII (magic number is P2) and would like > to output a color one in ASCII (magic number is P3). You should ins

Re: [Gimp-user] problem with image conversion script

2008-04-07 Thread Octavi Fors
Thanks Pere! the script worked fine once I included your tip. I'm surprised gimp interpreter didn't warn that... Anyway, now the output "mask_gimp.ppm" file is generated. However, this is a greyscale one in ASCII (magic number is P2) and would like to output a color one in ASCII (magic number is

Re: [Gimp-user] problem with image conversion script

2008-04-07 Thread Pere Pujal i Carabantes
Hola Octavi! El dg 06 de 04 del 2008 a les 19:31 +, 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 (ca

Re: [Gimp-user] problem with image conversion script

2008-04-07 Thread Octavi Fors
still no output file even when including the directory name in the name of the files... Can this silent error have to do with the fact that gimp asks Blank/Nan value" and "Pixel value scaling" when loading the FITS image (which I'm attaching to the message)? Best regards, Octavi. On Sun, Apr 6,

Re: [Gimp-user] problem with image conversion script

2008-04-06 Thread Sven Neumann
Hi, On Sun, 2008-04-06 at 17:17 -0400, Kevin Cozens wrote: > Your users current directory and GIMP's default directory aren't necessarily > the same. They are the same. The GIMP process doesn't change the current working directory and it uses it as the default directory when saving. So do the

Re: [Gimp-user] problem with image conversion script

2008-04-06 Thread Kevin Cozens
Octavi Fors wrote: > I want to convert a FITS image into PPM in batch mode. [snip] > When I run this in the command line (in the same directory where > "mask.fits" reides) I get this result: [snip] > However, no file "mask.ppm" appears in the directory where I'm executing > gimp :-( Your users c

[Gimp-user] problem with image conversion script

2008-04-06 Thread Octavi Fors
Hi everybody, 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 ) ) (drawable (car (gimp-image-get-active