Skip to content

Instantly share code, notes, and snippets.

@JacksonBates
Created September 14, 2015 01:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JacksonBates/59512101e56657578854 to your computer and use it in GitHub Desktop.
Save JacksonBates/59512101e56657578854 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=uSt80abcmJs
# Feedback welcome: jacksonbates@hotmail.com
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()
@goyalyashpal
Copy link

goyalyashpal commented Aug 8, 2021

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??

@JacksonBates
Copy link
Author

@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