It is currently 22 May 2022, 07:16

• Featuring Members' Images •
Could be related to 'Script Center - Resize'
GIMPER
tim
Krikor
GIMPER
GIMPER

GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Script Center - Resize

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.
GJL
Forum Member
13th Place
1026 Post(s)

Script Center - Resize

Post#1 by GJL » 11 Aug 2020, 09:11


Hi.
Is there a script that, for example has a layout of 512x1024, but all of the layers are diffenrent sizes and they are not
centered in the image, each layer centered an then resize to 512x1024?

If not, then can someone created this?

Thanks
GIMP Learn rocks...

Blighty
Forum Member
25th Place
96 Post(s)

Post#2 by Blighty » 11 Aug 2020, 11:26


Gimp's alignment tool can center the layers. Documentation is here:
https://docs.gimp.org/2.10/en/gimp-tool-align.html
Be sure to read about the rubber-banding.

Ofnuts has a plug-in that can resize all layers to image size.
ofn-layers-to-image-size
Get it from here:
https://sourceforge.net/projects/gimp-t ... s/scripts/
GIMP Learn rocks...

GJL
Forum Member
13th Place
1026 Post(s)

Post#3 by GJL » 13 Aug 2020, 06:28


Thats not what i am looking for. Too much handeling.
Need a script that change all the layers in one time if that is possible to make.

Thanks
GIMP Learn rocks...

Blighty
Forum Member
25th Place
96 Post(s)

Post#4 by Blighty » 13 Aug 2020, 06:53


GJL wrote:
13 Aug 2020, 06:28
Need a script that change all the layers in one time
The above does that, but in 2 steps instead of 1.

Gimp's align tool will align all the layers at once. Quick and easy.
The Ofnuts layers to image size script will resize all the layers at once. Quick and easy.
GIMP Learn rocks...

GJL
Forum Member
13th Place
1026 Post(s)

Post#5 by GJL » 13 Aug 2020, 09:53


The ofnuts scipt does only the layer to image size not the image on the layer.
GIMP Learn rocks...

Blighty
Forum Member
25th Place
96 Post(s)

Post#6 by Blighty » 13 Aug 2020, 15:53


GJL wrote:
13 Aug 2020, 09:53
The ofnuts scipt does only the layer to image size not the image on the layer.
OK, so you are not wanting to resize layer to image size.

What you are wanting is:
Layer crop to content
Layer scale to image size; taking aspect ratio into account.
For all layers

I don't know anything that can do that.
GIMP Learn rocks...

rich2005
GIMP Guru
22nd Place
179 Post(s)

Post#7 by rich2005 » 14 Aug 2020, 10:48


I think you will have to write your own script for a one-click-solution.
multi-layer.jpg
multi-layer.jpg # (112.31 KiB) Viewed 8001 times Thumbnail
The old multi-layer-action script can get there but only as two applications.
Options are all layers or linked layers and a drop down menu of actions.
Attachments
Multiple-Layer-Actions.scm #
(9.62 KiB) Downloaded 189 times

GJL
Forum Member
13th Place
1026 Post(s)

Post#8 by GJL » 14 Aug 2020, 13:47


These two scripts are perhaps to combine with the to create script:

1. plug-in-align-layers (settings all layer center)

2. sg-layer-scale-to-selection
GIMP Learn rocks...


GIMP/GL:  Tutorials | Tips | Questions | Interests | 🡆 Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 7 guests