Re: [Gimp-user] How to input multiple lines of text onto seperate photos



For which there is no documentation.

Rick S.

-----Original Message----- From: Joao S. O. Bueno
Sent: Thursday, March 16, 2017 4:09 PM
To: Rick Strong
Cc: ofnuts gmx com ; gimp-user-list gnome org
Subject: Re: [Gimp-user] How to input multiple lines of text onto seperate photos

On 16 March 2017 at 16:46, Rick Strong <rnstrong primus ca> wrote:
"there are two - GIMP can use both scheme or Python"

Where would I find them? (Win 7-64 Pro, SP1)
they are built in to GIMP
filters->Python->console
filters->script-fu->console;

Use the "browse" button at the bottom of either dialog to browse the
available programmatic
calls.

Seach for samples installed either on your computer, along with GIMP
(ex. .py files in your
GIMP plug-ins folder) or on the internet to have plug-in examples.

To play along on the console, in Python you have to get a reference to
the active image -
type:
img = gimp.image_list()[0]

(actually this is a reference to the most recently open image)

Rick S.

-----Original Message----- From: Joao S. O. Bueno
Sent: Thursday, March 16, 2017 10:17 AM
To: Rick Strong
Cc: ofnuts gmx com ; gimp-user-list gnome org

Subject: Re: [Gimp-user] How to input multiple lines of text onto seperate
photos

On 16 March 2017 at 10:27, Rick Strong <rnstrong primus ca> wrote:

However GIMP defines it relative to the coordinates of the given box, I
guess. I could script it in PageMaker, Corel Draw, InDesign, and MS Word.

What is the current scripting system in GIMP?


thre are two - GIMP cna use both scheme or Python - and the calls
can't get much simpler -
they just require information.

Since both are full featured langauges that allow you to define
functions, you can inside your script,
define a function that will render the required text on a given layer,
position it at a fixed porportional heihgt, and center it on the image
using nothing but simple arithmetic and GIMP provided API.

(And also, load several images from a folder, open a text file, and
match the text to the image based on name, or whatever you want to
do).


Rick S.

-----Original Message----- From: Ofnuts
Sent: Thursday, March 16, 2017 2:20 AM
To: gimp-user-list gnome org
Subject: Re: [Gimp-user] How to input multiple lines of text onto seperate
photos


On 16/03/17 05:18, Rick Strong wrote:


Yes, it would be nice if GIMP had simple a scripting language.
I.E. "Get text from here.
"Format it.
"Place it here.



The devils is in the details...  In "place it here":

    what is "it": the center? a corner (which)? the baseline? the
middle of the uppercase characters?
    and what is "here"? Absolute coordinates? The center of the
picture? A corner? Relative to the whole image or to a specific layer?

By the time you have covered most use cases, you have something like the
current script system...


_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list
_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]