After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731843 - gimp_export_image() function is not available to Python plugins
gimp_export_image() function is not available to Python plugins
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Gimp-Python
git master
Other All
: Normal normal
: 2.10
Assigned To: Manish Singh
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2014-06-18 12:20 UTC by Vladimir Rutsky
Modified: 2014-06-21 06:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladimir Rutsky 2014-06-18 12:20:36 UTC
gimp_export_image() from libgimp/gimpexport.h is not available to Python plugins.

It's useful for writing export plugins, I suggest to export it to Python.
Comment 1 Joao S. O. Bueno 2014-06-20 23:06:57 UTC
Fixed in GIMP Master - should be available for GIMP 2.10.

In GIMP 2.8, I  advise one to simply perform the work of gimp_export_image
in the plug-in side. 

It is a 4-5 function call sequence, in most cases:

saving_image = pdb.gimp_image_duplicate(img)
saving_drawable = pdb.gimp_image_merge_visible_layers(saving_image)
# convert color spaces if needed.
pdb.gimp_file_save(...)
pdb.gimp_image_delete(saving_image)