Re: [Gimp-user] Error on the bash command line

2011-04-25 Thread houghi
On Tue, Apr 19, 2011 at 06:14:39PM +0200, houghi wrote:
 I am very well aware of that. It is also hard to ask when you don't
 understand what you are asking. ;-) I hate questions like It doesn't
 work! and I hate myself for coming across like that.

OK. Status update:
Things work, but not due to me. Basically I kept on searching and found
scripts from others. I am able to read them and sometimes even edit them.
I am still unable to make my own.

Here my thoughts on how I think the process is going:

From the command line:
gimp -i -c -d -b '(batch_fuzzy_border ./alyssa01.jpg pink 40 TRUE 10 TRUE 
50) ' -b '(gimp-quit 0)'

This is read by the script with
(define (batch_fuzzy_borderĀ  pattern color size blurt gran shadowt shadowp)

This then is passed on to the real script with
script-fu-fuzzy-border image drawable color size blurt gran shadowt shadowp 
FALSE TRUE)

All the rest is to open andf close the file(s).

This all works, so I try to implement this for script-fu-drop-shadow where
I want to use the standard settings for all.
In scrpt-fu console I get the following:
(script-fu-drop-shadow run-mode image drawable value value value color value 
toggle)

As I only want to change the name, I get the following:

(define (batch_drop_shadow  pattern)
  (let* ((filelist (cadr (file-glob pattern 1
(while (not (null? filelist))
  (let* ((filename (car filelist))
 (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
 (drawable (car (gimp-image-get-active-layer image)))
)
(script-fu-drop-shadow image drawable 8 8 15 black 80.0 TRUE)
(set! drawable (car (gimp-image-get-active-layer image)))
(gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
(gimp-image-delete image)
  )
  (set! filelist (cdr filelist))
)
  )
)

The command I use is:
gimp --verbose -i -c -d -b '(batch_drop_shadow file.png )' -b '(gimp-quit 0)'

This results in: 
Starting extension: 'extension-script-fu'
No batch interpreter specified, using the default 'plug-in-script-fu-eval'.
batch command executed successfully. 

The result is however not a dropshadow, although something is done, as
the size is different before and after. With all the time I spend on this,
it must be me that is unable to grasp how things are done and perhaps
better just ask when O need a script.

The end goal is to be able to do this for all of the scripts that are either
included or downloaded at a later time. I am afraid this will be not for
me. :-/

houghi
-- 
Theologians can pursuade themselves of anything. Anyone who can worship
a trinity and insists that his religion is a monotheism can believe
anything -- just give him time to rationalize it.
   Robert A. Heinlein, JOB: A Comedy of Justice 
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] adding watermak from command line

2011-04-25 Thread zsolt
Hi, I need help how to add watermark to images from command line.

I downloaded watermark.scm and watermark-it.scm, but cold not find how to 
invoke it in any of the forums ...

I am looking for something like:

 gimp -i -b '(watermark soureImage.jpg watermark.jpg opacity)' -b 
'(gimp-quit 0)'

or similar combinations. I tried many combinations but always get:

batch command experienced an execution error

It is hard to figure out what the issue is as there is no detailed error 
message.

Thank you,
Zsolt

-- 
zsolt (via gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] adding watermak from command line

2011-04-25 Thread houghi
On Mon, Apr 25, 2011 at 07:50:52PM +0200, zsolt wrote:
 Hi, I need help how to add watermark to images from command line.
 
 I downloaded watermark.scm and watermark-it.scm, but cold not find how to 
 invoke it in any of the forums ...
 
 I am looking for something like:
 
  gimp -i -b '(watermark soureImage.jpg watermark.jpg opacity)' -b 
 '(gimp-quit 0)'
 
 or similar combinations. I tried many combinations but always get:
 
 batch command experienced an execution error
 
 It is hard to figure out what the issue is as there is no detailed error 
 message.

I will be readinganswers to this with interest as doing things from the
command line are tricky.

What I do to watermark images is using ImageMagick as that is much easier
to use. http://www.imagemagick.org/Usage/annotating/#watermarking has
examples with with text and images.

houghi
-- 
 This is written under the influence of tv channel
 2 be (as there was nothing else on).

 I am now watching : Zware Jongens - North Sea
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user