Re: [Gimp-user] text processing script

2010-11-13 Thread Ofnuts

On 11/13/2010 11:12 AM, Damien wrote:

Hello the list !

I am totally new to the Gimp and would need to write a script that 
does the following:


There are two ways to script Gimp: Scheme (a LISP derivative) that is 
built-in, and Python that may be part of your install (and can be 
otherwise added later, even if it's not painless). I use Python.




1) generate text strings (with a specified font) using all consonants 
(except for "X", "W", "Y" and "Z") that look like this:

- B
-XBXXX
-XXBXX
-XXXBX
-B
I was wondering if doing this through the Gimp is really efficient (I 
was thinking of using a spreadsheet instead).


This would be done  by the script, likely light-years more efficient 
than a spreadsheet.




2) Insert the above made lines in one jpeg picture each (800x600), 
vertically and horizontally centred.


I suggest using PNG format for this instead. The files won't be bigger 
and you won't get any artifacts


3) Make five copies of every jpeg and manipulate contrast in order to 
fade from highest to lowest according to a certain step 
(luminance/square-root of 2).


For some definition of "contrast" :)

To those wondering, this is for stimuli building in a psychology 
experiment.


I would very much appreciate any hints on which tools to use.


Gimp may be usable, but the ImageMagick toolbox with a shell script is 
likely to be a much better solution. See here for some examples wit 
text,  while extenive image 
manipulation is shown here:  
(notet that you can even describe mathematically what you want...)







Cheers,
Damien.


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
   


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] text processing script

2010-11-13 Thread Damien
Hello the list !

I am totally new to the Gimp and would need to write a script that does
the following:

1) generate text strings (with a specified font) using all consonants
(except for "X", "W", "Y" and "Z") that look like this:
- B
-XBXXX
-XXBXX
-XXXBX
-B
I was wondering if doing this through the Gimp is really efficient (I
was thinking of using a spreadsheet instead).

2) Insert the above made lines in one jpeg picture each (800x600),
vertically and horizontally centred.

3) Make five copies of every jpeg and manipulate contrast in order to
fade from highest to lowest according to a certain step
(luminance/square-root of 2).


To those wondering, this is for stimuli building in a psychology
experiment.

I would very much appreciate any hints on which tools to use.

Cheers,
Damien.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user