It is currently 01 Mar 2021, 13:11
• Featuring Members' Works (Image Attachments) •
Post your Script Requests for GIMP here.
Forum rules
Request your Script(s) for GIMP here in this forum.
Provide details of steps performed in GIMP so that script can be written for the process and also give the request a name so that scripts can be named after.
sweeneyMark
More...
View: |Posts
Topic Posts: 3/3 |
Posts: 38
Joined: 27 Apr 2019, 10:20
Cash on hand:
376.55 GLP
x 14
x 6
Quote
0
login to like this post
Post #1
by sweeneyMark » 19 Jun 2020, 10:38
Hi,
A script that :
Selects the current layers mask
then converts that mask to a selection
then grows the selection by 30 pixels
then autocrops the layer to that selection.
To produce a layer trimmed to the layer mask size.
Thanks
GIMP Learn rocks...
sweeneyMark
More...
View: |Posts
Topic Posts: 3/3 |
Posts: 38
Joined: 27 Apr 2019, 10:20
Cash on hand:
376.55 GLP
x 14
x 6
Quote
0
login to like this post
Post #2
by sweeneyMark » 19 Jun 2020, 13:20
nevermind, I surprised myself and hacked it out!
GIMP Learn rocks...
sweeneyMark
More...
View: |Posts
Topic Posts: 3/3 |
Posts: 38
Joined: 27 Apr 2019, 10:20
Cash on hand:
376.55 GLP
x 14
x 6
Quote
2
login to like this post
Post #3
by sweeneyMark » 19 Jun 2020, 13:21
pdb.gimp_image_select_item(image,2,mask)
pdb.gimp_selection_grow(image,64)
layer = pdb.gimp_image_get_active_layer(image)
pdb.gimp_selection_invert(image)
pdb.gimp_edit_clear(layer)
pdb.plug_in_autocrop_layer(image,layer)
GIMP Learn rocks...
6 Replies
7779 Views
Last post by enxio27
18 Mar 2020, 03:41
0 Replies
1651 Views
Last post by KrytenKoro
06 Jul 2020, 20:02
6 Replies
5785 Views
Last post by enxio27
22 Mar 2020, 23:18
0 Replies
947 Views
Last post by tim
30 Jun 2020, 00:13
8 Replies
4610 Views
Last post by david
03 Oct 2020, 10:30
1 Replies
1273 Views
Last post by david
03 Oct 2020, 10:34
10 Replies
1996 Views
Last post by mahvin
10 Jan 2021, 23:32
Users browsing this forum: No registered users and 6 guests