手作業でちまちまやっていたものが、メニュー一発で出来るようになった。
オリンパスE-PL6を買って以来、出番の無かった、
カシオのハイスピードエクシリムのHDRモードが現役復帰した。
#!/usr/bin/python
from gimpfu import *
def plugin_main(timg, tdrawable):
 theImage = gimp.image_list()[0]
 drawable = pdb.script_fu_separate_luminance(theImage, TRUE, FALSE)
 active_layer = pdb.gimp_image_get_layer_by_name(theImage, "Lum")
 pdb.gimp_image_set_active_layer(theImage, active_layer)
 pdb.script_fu_advanced_tone_mapping(theImage, active_layer, 10, 75, 90, 3)
 active_layer = pdb.gimp_image_get_active_layer(theImage)
 pdb.gimp_levels_auto(active_layer)
 pdb.gimp_image_lower_layer(theImage, active_layer)
 pdb.gimp_selection_none(theImage)
register(
        "HDR-AUTO",
        "",
        "",
        "",
        "",
        "2016",
        "<Image>/Filters/MM-Filters/HDR-AUTO",
        "RGB*, GRAY*",
        [],
        [],
        plugin_main)
main()