Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DarthMoulByte/6cfe79967f8a7aa94b0677a6b73c8ec9 to your computer and use it in GitHub Desktop.

Select an option

Save DarthMoulByte/6cfe79967f8a7aa94b0677a6b73c8ec9 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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment