It is currently 20 Feb 2018, 21:28

GIMP Python Fu ScriptsCollage Tile Match Script (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 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 1207
x 258
Contact:
Canada

Collage Tile Match Script

Post#1 by tim » 4 weeks 15 hours ago


27.8hrs.png
Collage Tile Match City 27.8 hrs
27.8hrs.png # (981.45 KiB) Viewed 167 times (Watermarked | Thumbnail)
:download:
collage.zip #
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(3.26 KiB) Downloaded 7 times
Script Menu Location: Python-Fu/Collage Tile Match...

Instructions:
1. Have an image that you'd like to collage opened as active layer.
2. Have another image opened to use as Tile image.
3. Select image from step 1. Run Script (Python-Fu/Collage Tile Match...) Select Tile Image as 1st input, Select Tile dimension (100 default), Select colors used to index mode so that we have funky shapes (8 default). Click OK to run script.
4. Now go to bed and hopefully it'll finish when you wake up or longer. (See above image it took 27.8 hrs, ran with defaults image was 1600x1200, Tile image was about 1800x1200)
5. That's it.

After this process is done, there are stray pixels in top left and bottom right corners of tiles on finished product.
You can use script below to fix those stray pixels.
download:
fix_collage.zip #
fixes stray pixels of collage tile script
(1.32 KiB) Downloaded 6 times
Script Menu Location: Python-Fu/Collage Fix

Instructions:
1. Make the finished product from above Collage Tile Match script active.
2. Run script (Python-Fu/Collage Fix). Enter same Tile Dimension as used in above Script.
3. That's it. It'll fix stray corner pixels.

--------------------------------------
Untested version 2 uses random images from the web as tiles instead of asking for Tile image.
:download:
collage (2).zip #
version 2. You'll find it under Collage Tile Match New...
(3.73 KiB) Downloaded 2 times
--------------------------------------
After testing for 2.5 days process keeps dying on me so I added this version to allow user to pick which tile (1 starting index) to continue from.
:download:
collage (3).zip #
version 3. Allow you to specify which tile to start at
so that you can continue from middle of process incase process was killed because it takes long time. It'll over write C:\temp\output.png as it renders. So remember to save output.png as something else before continuing with this script.
(3.99 KiB) Downloaded 2 times
0 x



aka Tin
Image gimplearn.net                                              

Registered members enjoy ads-free content
User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#2 by Issabella » 3 weeks 2 days ago


Tin, I have problems with this script since first time. I have two images open, on one of them I try to run the script but it stps almos at the very start.
0 x



Issabella

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 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 1207
x 258
Contact:
Canada

Post#3 by tim » 3 weeks 2 days ago


Are you sure it stopped? On mine it looks like it hangs but it's actually doing work just really slowly.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#4 by Issabella » 3 weeks 2 days ago


I get this.
Attachments
Captura.JPG
Captura.JPG # (63.25 KiB) Viewed 61 times (Watermarked | Thumbnail)
0 x



Issabella

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 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 1207
x 258
Contact:
Canada

Post#5 by tim » 3 weeks 2 days ago


are you on windows or linux?
change line 37 of script to some path that is valid on your computer. I kind'a hacked through this script so it's not error proof for linux. or if your C:\ doesn't have a temp folder.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Issabella
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 1962
Joined: 19 Jan 2017, 11:42
Cash on hand: 17,162.78 GLP
Gender: Gal
Operating System: Windows
x 231
x 505
Spain

Post#6 by Issabella » 3 weeks 2 days ago


Windows
0 x



Issabella

User avatar
tim

Administrator
View: Showcase | Slideshow
Topic Posts: 6/12
Posts: 2162
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,946.37 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 1207
x 258
Contact:
Canada

Post#7 by tim » 3 weeks 2 days ago


Doesn't your windows have a C:\temp\ folder?
0 x



aka Tin
Image gimplearn.net                                              

Post Reply

Last 20 Members Who Visited This Topic

pmig (1), User avatar Pat625 (5), User avatar leopardo-40 (3), User avatar tim (32), User avatar Issabella (16), User avatar Conbagui (1), User avatar gnerd (1)

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

Who is online

Users browsing this forum: No registered users and 2 guests