Re: [Gimp-user] Betreff: gimp 2.1 batch problem

2004-08-31 Thread Sven Neumann
Hi,

"hoehmi" <[EMAIL PROTECTED]> writes:

> SF-STRING  _"Text"   "Text"
> 
> SF-ADJUSTMENT _"Font Size (pixels)" '(17 2 1000 1 10 0 1)
> 
> SF-FONT_"Font" "Cezanne Light"
> 
> SF-COLOR   _"Text Color" '(255 255 210)
> 
> SF-PATTERN _"Pattern""Wood #1"
> 
> SF-TOGGLE  _"Pressed"   FALSE
> 
> SF-ADJUSTMENT _"Fixed Width" '(160 2 1000 1 10 0 1)
> 
> SF-STRING  "Filename" "button.jpg")
> 
>  
> 
>  gimp-2.1 -d -i -s --no-shm --no-cpu-accel -c -b '(script_fu_button_hoehmi 1
> 
> hello" (32 2 1000 1 10 0 1) "Cezanne Light"  (0 0 0) Wood false (230 2 1000
> 
> 1 10 0 1) "button.png")' '(gimp-quit 0)'

You are obviously not passing the correct type of parameters to your
script:

  (32 2 1000 1 10 0 1) doesn't look like a font size, does it? What
  about passing 32 instead?

  (0 0 0) isn't a color, '(0 0 0) would be one though.


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


[Gimp-user] Betreff: gimp 2.1 batch problem

2004-08-31 Thread hoehmi
hi folks,

 

these fu-script works fine with the ui but not in batch-mode. why?

 



(define (text-width extents)

  (car extents))

 

(define (text-height extents)

  (cadr extents))

 

(define (text-ascent extents)

  (caddr extents))

 

(define (text-descent extents)

  (cadr (cddr extents)))

 

(define (script_fu_button_hoehmi

 text text-size font text-color pattern pressed width filename)

  (let* ((old-bg-color (car (gimp-palette-get-background)))

 

  (text-extents ( gimp-text-get-extents-fontname text text-size PIXELS
font))



 (ascent (text-ascent text-extents))

 (descent (text-descent text-extents))



 ; abstand text link bzw. rechts

 (xpadding 8)



 ; abstand text oben bzw. unten

 (ypadding 10)





 ; center text, could be nicer :-)

 ; diese berechnung macht nur bei einer fixen weiter sinn

 (xtext

( /

( - width

( - (text-width text-extents)

(text-width (gimp-text-get-extents-fontname "A"
text-size PIXELS font))

  )

)

  2

)

 )



 ; höhe = 2 * ypadding + descent + ascent

 (height (+ ( * 2 ypadding)

( + ascent descent)

 )

 )



 ; bild anlegen

 (img (car (gimp-image-new width height RGB)))

 (background (car (gimp-layer-new img width height RGBA-IMAGE 
Background" 100 NORMAL-MODE)))

 (bumpmap (car (gimp-layer-new img width height RGBA-IMAGE "Bumpmap" 100
NORMAL-MODE)))

 (textl (car

 (gimp-text-fontname

  img -1 0 0 text 0 TRUE text-size PIXELS font

   (gimp-image-undo-disable img)

(gimp-image-add-layer img background 1)

(gimp-image-add-layer img bumpmap 1)



; Create pattern layer



(gimp-palette-set-background '(0 0 0))

(gimp-edit-fill background BACKGROUND-FILL)

(gimp-patterns-set-pattern pattern)

(gimp-edit-bucket-fill background PATTERN-BUCKET-FILL NORMAL-MODE 100 0
FALSE 0 0)



; Create bumpmap layer



(gimp-edit-fill bumpmap BACKGROUND-FILL)



(gimp-palette-set-background '(127 127 127))

(gimp-rect-select img 1 1 (- width 2) (- height 2) CHANNEL-OP-REPLACE
FALSE 0)

(gimp-edit-fill bumpmap BACKGROUND-FILL)



(gimp-palette-set-background '(255 255 255))

(gimp-rect-select img 2 2 (- width 4) (- height 4) CHANNEL-OP-REPLACE
FALSE 0)

(gimp-edit-fill bumpmap BACKGROUND-FILL)



(gimp-selection-none img)



; Bumpmap



 (plug-in-bump-map 1 img background bumpmap 135 45 2 0 0 0 0 TRUE pressed 0)



; Color and position text



(gimp-palette-set-background text-color)

(gimp-layer-set-preserve-trans textl TRUE)

(gimp-edit-fill textl BACKGROUND-FILL)



(gimp-layer-set-offsets textl

xtext

(+ ypadding descent)

)



; Clean up



(gimp-image-set-active-layer img background)

(gimp-image-remove-layer img bumpmap)



(set! layer-to-save (car (gimp-image-merge-visible-layers img 0)))

(gimp-file-save 1 img layer-to-save filename filename)



(gimp-palette-set-background old-bg-color)

(gimp-image-undo-enable img)

;(gimp-display-new img)

))



(script-fu-register "script_fu_button_hoehmi"

_"/Xtns/Script-Fu/ButtonHoehmi..."

"button hoehmi"

"hoehmi"

"hoehmi"

"Aug 2004"

""

SF-STRING  _"Text"   "Text"

SF-ADJUSTMENT _"Font Size (pixels)" '(17 2 1000 1 10 0 1)

SF-FONT_"Font" "Cezanne Light"

SF-COLOR   _"Text Color" '(255 255 210)

SF-PATTERN _"Pattern""Wood #1"

SF-TOGGLE  _"Pressed"   FALSE

SF-ADJUSTMENT _"Fixed Width" '(160 2 1000 1 10 0 1)

SF-STRING  "Filename" "button.jpg")

 





 

 gimp-2.1 -d -i -s --no-shm --no-cpu-accel -c -b '(script_fu_button_hoehmi 1

hello" (32 2 1000 1 10 0 1) "Cezanne Light"  (0 0 0) Wood false (230 2 1000

1 10 0 1) "button.png")' '(gimp-quit 0)'





 

This is a development version of The GIMP.

Debug messages may appear here.

 

gimp_composite: use=yes, verbose=no

batch command: experienced an execution error.

plug_in_close: plug-in aborted before sending its procedure return values

 

<



any ideas?

 

cu

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


Re: [Gimp-user] do images that use textures, fractals, etc., get GPL infected?

2004-08-31 Thread Sven Neumann
Hi,

"Alexander R. Pruss" <[EMAIL PROTECTED]> writes:

> I was wondering under what circumstances images created with the
> Gimp need to be GPL'ed.

Under no circumstances will the use of The GIMP or any of the data
files that ship with The GIMP force any kind of license on the images
you create with it. I am not a lawyer but this is the GIMP developers'
point of view on this subject. We have always denied to include
plug-ins that attempt to put restrictions on how they are being used.
The GPL applies to the source code only.


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


Re: [Gimp-user] do images that use textures, fractals, etc., get GPL infected?

2004-08-31 Thread Simon Budig
Alexander R. Pruss ([EMAIL PROTECTED]) wrote:
> I was wondering under what circumstances images created with the Gimp 
> need to be GPL'ed.  Obviously, program output is not a derivative work. 
>  But images created with the Gimp might incorporate copyrighted 
> elements such as brush shapes (there might be a single brush stroke from 
> which the brush could be reconstructed), a texture, fill pattern, etc. 
> Or what if I use a default set of parameters from Fractal Explorer to 
> generate a fractal that is a prominent part of an image?  (The latter is 
> the question that interests me.  I wish I knew what "source code" means 
> in that context, too.  The fractal params?  The xcf file?)

Brush shapes, Patterns etc. are packaged with the Gimp for the sole
purpose of being incorporated into other images. It is not intended
to extend the GPL to images generated with the GIMP.

Maybe we should state this explicit in a readme, maybe even place the
brushes/patterns etc. in the public domain explicitely.

So you can do with your images whatever you want. If there are facts
that prohibit this for whatever reason (because of the GIMP
distribution) we will eliminate this obstacle.

Bye,
Simon
-- 
  [EMAIL PROTECTED]  http://simon.budig.de/
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] do images that use textures, fractals, etc., get GPL infected?

2004-08-31 Thread Alexander R. Pruss
I was wondering under what circumstances images created with the Gimp 
need to be GPL'ed.  Obviously, program output is not a derivative work. 
 But images created with the Gimp might incorporate copyrighted 
elements such as brush shapes (there might be a single brush stroke from 
which the brush could be reconstructed), a texture, fill pattern, etc. 
Or what if I use a default set of parameters from Fractal Explorer to 
generate a fractal that is a prominent part of an image?  (The latter is 
the question that interests me.  I wish I knew what "source code" means 
in that context, too.  The fractal params?  The xcf file?)

Alex
--
Dr. Alexander R. Pruss
Department of Philosophy
Georgetown University
Washington, DC 20057-1133  U.S.A.
e-mail: [EMAIL PROTECTED]
online papers and home page: www.georgetown.edu/faculty/ap85
--
"Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
   - Paul of Worczyn (1424)
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] gimp2 installation

2004-08-31 Thread Sven Neumann
Hi,

N L <[EMAIL PROTECTED]> writes:

> I used the package of Aaron Voisine to install on my
> mac osx 10.3.5. Everything was fine but I choose the
> wrong place for the test swap file and it can not be
> open : I would like to change its place but I do not
> know where I ca, go to do it and how I can do it 

man gimprc

Or use the online version of the manual page:

http://gimp.org/unix/man-gimprc-2.0.html


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


[Gimp-user] gimp2 installation

2004-08-31 Thread =?iso-8859-1?q?N=20L?=
I used the package of Aaron Voisine to install on my
mac osx 10.3.5. Everything was fine but I choose the
wrong place for the test swap file and it can not be
open : I would like to change its place but I do not
know where I ca, go to do it and how I can do it 

Is there A kind person able to help me?!!!PLEEAASE!!

Lynn






Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
dialoguer instantanément avec vos amis. A télécharger gratuitement sur 
http://fr.messenger.yahoo.com
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user