RSS/Atom feed Twitter
Site is read-only, email is disabled

problem with image conversion script

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

12d85b50804061231l20bf8bb1i... 07 Oct 20:26
  problem with image conversion script Octavi Fors 06 Apr 21:32
Octavi Fors
2008-04-06 21:32:43 UTC (about 17 years ago)

problem with image conversion script

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-layer image)))) (file-ppm-save RUN-NONINTERACTIVE image drawable outfile outfile 0) (gimp-image-delete image)
)
)
)

When I run this in the command line (in the same directory where "mask.fits" reides) I get this result:

$ gimp -i -b '( fits-to-ppm "mask.fits" "mask.ppm")' '(gimp-quit 0)' No batch interpreter specified, using the default 'plug_in_script_fu_eval'. batch command: executed successfully.

However, no file "mask.ppm" appears in the directory where I'm executing gimp :-(

Any ideas what's going on? Whatever comments/hint will be very welcome.

Thanks in advance,

Octavi.