Logics for the "drawables" parameter of GimpSaveProcedure
The current GimpSaveProcedure has a drawables
parameter for the base run call. Yet this is currently mostly unused. Actually I believe the only format where this info is used is XCF to reproduce the layer/channel selection. Yet even here, our implementation does not even used the passed parameter, but re-queries the selected layers and channels, making it even more useless.
Basically I believe that this info is currently unused everywhere and even if we wanted to have the item selection info, we could request it with API functions anyway.
Still we could just leave it as-is, or drop it. But what about using this info a different way?
A feature we've wanted for a long time (and which we currently have as a plug-in I wrote) is the ability to export selected layers as their own image files. We could have a rule like: when NULL
is passed as drawables
, then go for whatever default you want to do; when an actual list of drawables is passed, possibly do something different depending on the format (for most export formats in particular, we may use it to export to different files).
What do people think?