color-to-alpha: add "needs-alpha" meta-data

As a hint that can be checked for in GIMP and other applications. Always making
sure that the layer has alpha before running ops with this meta-data key set
should remove the possibility of running the filter without adding alpha for
ops where doing so clearly would be non-sensical.
parent 6184ce43
......@@ -284,6 +284,8 @@ gegl_op_class_init (GeglOpClass *klass)
"name", "gegl:color-to-alpha",
"title", _("Color to Alpha"),
"categories", "color",
"needs-alpha", "true", /* hint for GIMP that layers this op is performed on
need to have alpha added */
"license", "GPL3+",
"reference-hash", "f110613097308e0fe96ac29f54ca4c2e",
"description", _("Convert a specified color to transparency, works best with white."),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment