Posted this as a bug, but I'm not sure if it is a bug. I just rediscovered this forum, so hoped I could get an answer here.
Environment/Versions
GIMP version:
AppImage 2.10.22 with plugins
Linux Mint 20.2
Description of the bug
I can't find out how to use
python-fu command gimp_drawable_levels. I think I've got everything correct, but the error message is unhelpful, and I don't know what to change. I suspect it's a bug, but have found so little documentation regarding this feature that I can't be sure I'm using it right.
Reproduction
Is the bug reproducible? Always.
Reproduction steps:
open
python-fu console
paste this:
from gimpfu import *
input_path = '/path/to/input.png'
output_path = '/path/to/output.png'
image = pdb.gimp_file_load(input_path, input_path)
# red
pdb.gimp_drawable_levels(
image,
HISTOGRAM_RED,
0.050980392156862744,
0.95686274509803926,
False,
1.0,
0.0,
1.0,
False
)
Expected result:
no error
Actual result:
Traceback (most recent call last):
File "", line 10, in
TypeError: wrong parameter type