Re: [Gimp-user] Console problem

2002-02-20 Thread John Beppu

[  date  ] 2002/02/19 | Tuesday | 09:32 AM
[ author ] Mike McIntyre [EMAIL PROTECTED] 

 
 It's getting the first command done okay, but none of the subsequent 
 ones. What simple but important thing am I missing ?


Try wrapping all those s-expressions inside a begin.
For example:

; gimp-quit will not be executed this time...
;
gimp -c -i -b '(set! x 5) (gimp-quit 0)'


; however, if you wrap it all in a begin,
; everything will run
;
gimp -c -i -b '(begin (set! x 5) (gimp-quit 0))'

The docs aren't really clear on this, but the -b option
only takes one top-level s-expression.  The Script-Fu
Server is similar in that only one top-level s-expression
is executed per request.


___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



[Gimp-user] Console problem

2002-02-18 Thread Mike McIntyre

Hi

I'm trying to open jpeg files and close them again with lower quality 
with the intention of reducing the file size, making the files load 
quicker in browsers. The code I'm trying to use is ..

gimp -c -i -b \
'(set! theImage (gimp-file-load 1 
/home/mike/homepages/wgtn_fso/2002-01/dinner-with-5-strangers/pics/everyone_together.jpg
 
/home/mike/homepages/wgtn_fso/2002-01/dinner-with-5-strangers/pics/everyone_together.jpg))'
 
\
'(set! Finalpicture (gimp-image-active-drawable theImage))' \
'(gimp-image-set-filename Finalpicture everyone_together.gimpd.jpg)' \
'(gimp-file-save 1 theImage theLayer 
/home/mike/homepages/wgtn_fso/2002-01/dinner-with-5-strangers/pics/everyone_together.gimpd.jpg
 
everyone_together.gimpd.jpg)' \
'(gimp-quit 0)'

It's getting the first command done okay, but none of the subsequent 
ones. What simple but important thing am I missing ?

Cheers

___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user



Re: [Gimp-user] Console problem

2002-02-18 Thread Jeff Trefftzs

Hi Mike -

At the risk of sounding like a broken record, you really don't 
want to use
the GIMP for this task.  It's ever so much easier with 
ImageMagick.  Try something like this:

for image in *.jpg
do
convert -quality 50 $image loqual_$image
done

Read man convert for all the details.

There may be cases where it makes sense to use the GIMP in batch 
mode, but they are few and far between, and I don't think you 
have one of them here.

HTH,

-- 
--Jeff

Jeff Trefftzs [EMAIL PROTECTED]
http://www.tcsn.net/trefftzsHome Page
http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery
http://trefftzs.topcities.com/home.html Photo galleries



___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user