plug-ins: add missing parameters to file-png-save in openraster save_ora

This commit is contained in:
Jacob Boerema
2021-01-27 18:40:19 -05:00
parent 9d9f6e6240
commit 9a19cf3b81

View File

@ -222,10 +222,13 @@ def save_ora(procedure, run_mode, image, n_drawables, drawables, file, args, dat
GObject.Value(GObject.TYPE_BOOLEAN, interlace), GObject.Value(GObject.TYPE_BOOLEAN, interlace),
GObject.Value(GObject.TYPE_INT, compression), GObject.Value(GObject.TYPE_INT, compression),
# write all PNG chunks except oFFs(ets) # write all PNG chunks except oFFs(ets)
GObject.Value(GObject.TYPE_BOOLEAN, True), GObject.Value(GObject.TYPE_BOOLEAN, True), # Save background color (bKGD chunk)
GObject.Value(GObject.TYPE_BOOLEAN, True), GObject.Value(GObject.TYPE_BOOLEAN, True), # Save gamma (gAMA chunk)
GObject.Value(GObject.TYPE_BOOLEAN, False), GObject.Value(GObject.TYPE_BOOLEAN, False), # Save layer offset (oFFs chunk)
GObject.Value(GObject.TYPE_BOOLEAN, True), GObject.Value(GObject.TYPE_BOOLEAN, True), # Save resolution (pHYs chunk)
GObject.Value(GObject.TYPE_BOOLEAN, True), # Save creation time (tIME chunk)
# Other settings
GObject.Value(GObject.TYPE_BOOLEAN, True), # Save color values from transparent pixels
]) ])
if (os.path.exists(tmp)): if (os.path.exists(tmp)):
orafile.write(tmp, path) orafile.write(tmp, path)