Just the GimpData::save() and ::copy() part that is needed to duplicate and rename them, the image-to-pipe logic from the export plug-in remains to be ported. (cherry picked from commit aee097fa97)
aee097fa97