RSS/Atom feed Twitter
Site is read-only, email is disabled

Plug-ins - Getting List of Available File Formats

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Plug-ins - Getting List of Available File Formats khalim19 23 Apr 17:07
khalim19
2016-04-23 17:07:18 UTC (about 8 years ago)

Plug-ins - Getting List of Available File Formats

Hello,

I made a Python plug-in that exports layers as separate images and for user convenience I implemented in the GUI a list of file formats, similar to the one in the GIMP export dialog.

I have to maintain the list manually, which isn't ideal as I have to copy-paste the file format descriptions and extensions every time they get changed. Plus, I can't get the file format descriptions to be translated to different languages.

Hence, I would like to ask if it is possible in GIMP plug-ins to somehow get the list of available file formats - their description and file extensions (and possibly the names of the corresponding file load/save PDB procedures). This could also make it more convenient to determine whether the file extension the user entered is invalid (instead of calling "gimp-file-save" and letting it fail).

Regards, khalim19