It is currently 17 Oct 2021, 08:42

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

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
Sponsored content for World Food Program

Pespective Border Plug-in

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger
1st Place
5539 Post(s)

Pespective Border Plug-in

Post#1 by tim » 03 Mar 2019, 15:58


After creating Sample Color Border Plug-in, I wonder what other ways to create borders.
I thought "Hey, I can use the image and perspective transform it to form borders".
perspective_border.py #
Tested in GIMP 2.10.8 on Linux(Ubuntu)
(4.13 KiB) Downloaded 223 times
perspective_border.py #
version 2. Put image on top layer. Resize frame layer to image size (cleaner).
(4.27 KiB) Downloaded 129 times
perspective_border.py #
version 3. Fixed top and bottom border for Mirror/Reflect mode.
(4.33 KiB) Downloaded 149 times
perspective_border.py #
version 4. Option to Drop Shadow (suggested by Issabella).
(5.13 KiB) Downloaded 225 times
Plug-in Menu Location: Python-Fu/Perspective Border...

Instructions:
  1. Have an image with active layer you'd like to create border of opened.
  2. Run Plug-in (Python-Fu/Perspective Border...), Select Percentage to create border/frame with, Select Keep Aspect Ratio or not, Select Reflect/Mirror Borders option, Click "OK" to run plug-in.
  3. That's it. Have fun.
Sample result:
perspective_border_result_01.jpg
perspective_border_result_01.jpg # (95.6 KiB) Viewed 4005 times (Thumbnail | Recognize | Sq Tile | LNFI)
perspective_border_result_02.jpg
perspective_border_result_02.jpg # (167.64 KiB) Viewed 3976 times (Thumbnail | Recognize | Sq Tile | LNFI)
aka Tin
World Food Program | Good Deeds Forum

         

Krikor
Forum Member
12th Place
915 Post(s)

Post#2 by Krikor » 03 Mar 2019, 16:33


:thumbsup: Working well on windows, Gimp 2.10.1
Thx Tim.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

tim
GL Blogger
1st Place
5539 Post(s)

Post#3 by tim » 03 Mar 2019, 17:46


Version 2 has minor changes.
I think it is cleaner than version one like it resizes the frame layer to image size so that the layer isn't 1 pixel higher and 1 pixel lower than image size (I needed to make it 1 pixel wider in top/bottom direction because of transform perspective artifacts that didn't fully make corners meet).
And it also puts your original image on top so that it's not covered by frame's 1 pixel wide border (in the inner part, also to avoid 1 pixel error artifacts by transform tool).
aka Tin
World Food Program | Good Deeds Forum

         

Issabella
Script Tester
3rd Place
3538 Post(s)

Post#4 by Issabella » 03 Mar 2019, 18:03


Thank you so much Tin. I like the frames it produces. It's really nice. :thank_you: :cool:
Attachments
Thank you so much Tin.jpg
Thank you so much Tin.jpg # (66.71 KiB) Viewed 3961 times (Thumbnail | Recognize | Sq Tile | LNFI)
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.

enxio27
Forum Member
20th Place
228 Post(s)

Post#5 by enxio27 » 03 Mar 2019, 20:54


OH MY!! I can't wait to use that on a scrapbook page!
GIMP Learn rocks...

tim
GL Blogger
1st Place
5539 Post(s)

Post#6 by tim » 03 Mar 2019, 22:30


Updated version 3.
Fixed top and bottom borders when mirror/reflect mode is used.
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4507 Post(s)

Post#7 by Pat625 » 04 Mar 2019, 01:03


Tin, I really love this script, gives lovely border. I did have a problem with one that I have repeated several times to check. I said no to Mirror but the image of the cat and bird are in the border anyway.
Tin Tran.Perspective Border Mirror.jpg
Tin Tran.Perspective Border Mirror.jpg # (159.6 KiB) Viewed 3905 times (Thumbnail | Recognize | Sq Tile | LNFI)
Tin Tran.Perspective Border No Mirror.jpg
Tin Tran.Perspective Border No Mirror.jpg # (373.17 KiB) Viewed 3905 times (Thumbnail | Recognize | Sq Tile | LNFI)

tim
GL Blogger
1st Place
5539 Post(s)

Post#8 by tim » 04 Mar 2019, 01:43


@Pat625 ,
The cat & bird will always be in border if the image has them.
What mirror/reflect does it flips it so it's reflection instead of direct perspective but bird and cat will still be there.
aka Tin
World Food Program | Good Deeds Forum

         

Pat625
Tutorial Creator
2nd Place
4507 Post(s)

Post#9 by Pat625 » 04 Mar 2019, 01:48


Thank you Tin for the information.

Mapsking
Forum Member
27th Place
76 Post(s)

Post#10 by Mapsking » 04 Mar 2019, 09:38


Interesting plug-in, thanks.

Also, on a side note, the Perler beads plug-in is now working. Thanks @tim. I saw your message about the UTF encoding, and that must have fixed it, so I just wanted to mention it as well.
Attachments
Guard Dog.png
Guard Dog.png # (1018.59 KiB) Viewed 3882 times (Thumbnail | Recognize | Sq Tile | LNFI)


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 22 guests