Search found 17 matches

by vndep
24 Sep 2019, 00:17
Forum: Python Questions
Topic: Editing metadata in python
Replies: 1
Views: 1594

Editing metadata in python

Are there any good tutorials/sample code for using python scrips to edit metadata (Image > Metadata > Edit Metadata)?

Thanks in advance?
by vndep
26 Jun 2019, 16:02
Forum: GIMP/GL Questions
Topic: Python rounded rectangle bucket fill problem
Replies: 3
Views: 4087

Re: Python rounded rectangle bucket fill problem

Thanks. That worked well - I apologize for missing that parameter! Once I have the rounded rectangle, what's the best way to fill it with a color? I tried gimp_edit_fill and gimp_edit_bucket_fill, both without success The basic design of the code is: (a) create a layer, (b) make it transparent, (c) ...
by vndep
25 Jun 2019, 20:07
Forum: GIMP/GL Questions
Topic: Python rounded rectangle bucket fill problem
Replies: 3
Views: 4087

Python rounded rectangle bucket fill problem

In Python, I am trying to add to my background image a rounded rectangle and then fill it with green color. My latest attempt is below, which fails on the following line: pdb.gimp_image_select_round_rectangle(imageobj, 0, Sign1Xoff, Sign1Yoff, Layer1Width, Layer1Height, cornerradius) Any help / sugg...
by vndep
25 Jun 2019, 14:30
Forum: GIMP/GL Questions
Topic: Python perspective (Transform) question
Replies: 2
Views: 3192

Python perspective (Transform) question

In GIMP python I have several layers (+ some text) that I want to transform using the perspective tool.

What is the most efficient way to do this?

Should I assign all the layers (+ text) to a group layer and run the perspective tool on the group layer?

Or something else...?
by vndep
24 Jun 2019, 19:40
Forum: GIMP/GL Questions
Topic: Text box layer centering in python-fu
Replies: 4
Views: 4118

Re: Text box layer centering in python-fu

That totally works! Thanks!
by vndep
24 Jun 2019, 16:29
Forum: GIMP/GL Questions
Topic: Text box layer centering in python-fu
Replies: 4
Views: 4118

Text box layer centering in python-fu

Any thoughts on an efficient way to center a textbox in a python script? For background, the script starts with an image and adds a layer of text. I want to make sure that the center of the textbox aligns with a specific X,Y coordinate in the image. To clarify, I am not thinking about left/center/ri...
by vndep
22 Jun 2019, 18:48
Forum: GIMP/GL Questions
Topic: Draw arrow script recommendations
Replies: 1
Views: 3526

Draw arrow script recommendations

Hi - I am looking for a script that can draw arrows.

Ideally it would allow for a high degree of control and customization.

Thanks in advance for your recommendations!
by vndep
22 Jun 2019, 10:45
Forum: GIMP/GL Questions
Topic: "Ghost" python plugin?
Replies: 17
Views: 8428

Re: "Ghost" python plugin?

BTW you are a godsend - your responses in another post (viewtopic.php?f=9&t=1210) solved another problem.
by vndep
22 Jun 2019, 09:45
Forum: GIMP/GL Questions
Topic: "Ghost" python plugin?
Replies: 17
Views: 8428

Re: "Ghost" python plugin?

<groan> I am used to coding in an IDE so little stupid errors like new_img vs. new_image are tripping me up!
now it works.