It is currently 19 Feb 2018, 14:18

GIMP Python Fu ScriptsDivide an image into 4 quadrants and saves them Script for GIMP (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
Post Reply
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 1/1
Posts: 2157
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,894.01 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1196
x 256
Contact:
Canada

Divide an image into 4 quadrants and saves them Script for GIMP

Post#1 by tim » 16 Jun 2017, 19:14


This script came about from this topic -> http://gimpchat.com/viewtopic.php?f=5&t=15672#p216901
I thought it's a good example of possible scripts that have to loop through all jpg files that are within a folder (input folder) and process them.
So here's the script:
:download:
quadSave (2).zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.48 KiB) Downloaded 19 times

Script Menu Location: Python-Fu/Quad Save...

Instructions:
1. Have a blank image with a layer active/selected just so you can run script.
2. Run Script (from Script Menu Location mentioned above). Select width and height to scale to before running saving quads. Select input folder. Select output folder. Then click "OK" to run script.
3. Let the magic happen.
4. Script will open all jpg files in the input folder, and scale them to specified widthxheight. And save quadrants into output folder with suffixes "NW","NE", "SW", "SE" appended to original file name (before the .jpg extension).
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
Post Reply

Last 20 Members Who Visited This Topic

User avatar Pat625 (3), User avatar gnerd (1), User avatar Steve Reid (1), User avatar tim (1)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: Ella
2: oldmangrumpy
3: Wallace
4: Pat625
5: gnerd
6: Pat625
7: Issabella

Who is online

Users browsing this forum: No registered users and 1 guest