aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--img-save.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/img-save.c b/img-save.c
index 4106d71..3a62a60 100644
--- a/img-save.c
+++ b/img-save.c
@@ -335,6 +335,11 @@ img_save_image(gint32 image, const ImageParasite * plugin,
hdr.width = width * hdr.ncols;
hdr.height = height * hdr.nrows;
+ hdr.nrows = GUINT32_TO_LE(hdr.nrows);
+ hdr.ncols = GUINT32_TO_LE(hdr.ncols);
+ hdr.width = GUINT32_TO_LE(hdr.width);
+ hdr.height = GUINT32_TO_LE(hdr.height);
+
D(("*** Saving \"%s\"\n", filename));
gimp_progress_init_printf("Saving '%s'", gimp_filename_to_utf8(filename));