It is currently 28 Sep 2020, 18:03

• 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

Attempts to improve my script plugin-uncrop-side.py

Share your Python Fu Scripts/plug-ins for GIMP here
Post Reply
david
Forum Member

Attempts to improve my script plugin-uncrop-side.py

Post#1 by david » 26 Aug 2020, 08:54


I created (largely as an intellectual exercise) the script "plugin-uncrop-side.py" which works reasonably well for some images, but is useless on others.
I decided to try to improve it. I have added controls for the parameters which it passes to the resynthesizer plugin. This appears to produce a slight improvement for some images.
The other problem is that the transition between the original image and the added area can be fairly obvious, but as yet I am unable to find an elegant way of creating a feathered overlap.
I have attached the modified .py file for anyone who wishes to play with it.

david.
plugin-uncrop-side.py
(6.73 KiB) Downloaded 29 times
A quick note: Repeated additions of small amounts generally produces better results than one larger addition.

edit: 27/08/2020 - corrected error in enlargement calculation - frisket selection no longer inverted.
Last edited by david on 27 Aug 2020, 14:50, edited 1 time in total.
0

Issabella
Script Tester

Post#2 by Issabella » 26 Aug 2020, 18:27


David Congrats! I see nice improvement of your plug-in. As you say, there are pics which are easier to get a better result than others.
I have chosen a few and these are the results. I like them a lot.
Attachments
beautifully-4851709_1280.jpg
beautifully-4851709_1280.jpg (89.24 KiB) Viewed 652 times
beautifully-4851709_uncrop side.jpg
beautifully-4851709_uncrop side.jpg (108.37 KiB) Viewed 652 times
cat-1045782_1280.jpg
cat-1045782_1280.jpg (150.7 KiB) Viewed 652 times
cat-1045782_uncrop side.jpg
cat-1045782_uncrop side.jpg (177.39 KiB) Viewed 652 times
tree-5255288_1920.jpg
tree-5255288_1920.jpg (131.51 KiB) Viewed 652 times
tree-5255288_uncrop side.jpg
tree-5255288_uncrop side.jpg (143.57 KiB) Viewed 652 times
Issabella

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

david
Forum Member

Post#3 by david » 27 Aug 2020, 14:59


Issabella,
Thankyou for trying my modified plugin,
I have made another amendment. There was an error in the percentage enlargement calculation. The latest version is in #1 (above).
Experiment shows that it is possible to get slightly better results with more difficult subjects, but finding the best combination of settings is difficult!
I have yet to find a way of "feathering" the transition.
david.
0

Issabella
Script Tester

Post#4 by Issabella » 29 Aug 2020, 05:28


David, your plugin uncrop side is really good and I like it a lot. Thanks a lot for this useful tool. :cool:
Attachments
487_David_uncrop side.jpg
487_David_uncrop side.jpg (136.58 KiB) Viewed 594 times
626_David_uncrop side.jpg
626_David_uncrop side.jpg (143.75 KiB) Viewed 594 times
626cd8a2edfdbc36d44680f0e4442eb0.jpg
626cd8a2edfdbc36d44680f0e4442eb0.jpg (116.75 KiB) Viewed 594 times
4871dd866c1c170e40d55c48473f09f3.jpg
4871dd866c1c170e40d55c48473f09f3.jpg (127.81 KiB) Viewed 594 times
f75_David_uncrop side.jpg
f75_David_uncrop side.jpg (108.57 KiB) Viewed 594 times
f75e6f6957061ebb53e735ae33c75b0c.jpg
f75e6f6957061ebb53e735ae33c75b0c.jpg (99.92 KiB) Viewed 594 times
Issabella

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


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
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 18 guests