Created
September 14, 2015 01:39
-
-
Save JacksonBates/59512101e56657578854 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=uSt80abcmJs | |
# Feedback welcome: [email protected] | |
from gimpfu import * | |
def extreme_unsharp_desaturation(image, drawable): | |
pdb.gimp_image_undo_group_start(image) | |
radius = 5.0 | |
amount = 5.0 | |
threshold = 0 | |
pdb.plug_in_unsharp_mask(image, drawable, radius, amount, threshold) | |
pdb.gimp_desaturate_full(drawable, DESATURATE_LIGHTNESS) | |
pdb.gimp_image_undo_group_end(image) | |
register( | |
"python-fu-extreme-unsharp-desaturation", | |
"Unsharp mask and desaurate image", | |
"Run an unsharp mask with amount set to 5, then desaurate image", | |
"Jackson Bates", "Jackson Bates", "2015", | |
"Extreme unsharp and desaturate", | |
"RGB", | |
[ | |
(PF_IMAGE, "image", "takes current image", None), | |
(PF_DRAWABLE, "drawable", "Input layer", None) | |
], | |
[], | |
extreme_unsharp_desaturation, menu="<Image>/Filters/Enhance") | |
main() |
@yashpalgoyal1304 I'm afraid I don't use Gimp or these scripts at all anymore, so I can't really comment on how well they work with updates.
It's 6 years old, so likely to face issues!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
coming from https://www.youtube.com/watch?v=uSt80abcmJs or the playlist: https://www.youtube.com/playlist?list=PLyRItRv4aHfOuUC8a1SMeTLV08wxdnWt- . Thanks a lot per. ❤️
Edit: but it didnt show up in Gimp 2.10.22 - is it updated to python 3??