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

text processing script

This discussion is connected to the gimp-user-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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

text processing script Damien 13 Nov 10:12
  text processing script Ofnuts 13 Nov 14:10
Damien
2010-11-13 10:12:55 UTC (about 14 years ago)

text processing script

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: - BXXXX
-XBXXX
-XXBXX
-XXXBX
-XXXXB
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.

Ofnuts
2010-11-13 14:10:38 UTC (about 14 years ago)

text processing script

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: - BXXXX
-XBXXX
-XXBXX
-XXXBX
-XXXXB
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