diff options
author | Igor Pashev <pashev@truth.pearl.pomorsu.ru> | 2009-10-29 14:34:09 +0300 |
---|---|---|
committer | Igor Pashev <pashev@truth.pearl.pomorsu.ru> | 2009-10-29 14:34:09 +0300 |
commit | afb6f84f2c370a4bdf3ca1b398e522a029214eb3 (patch) | |
tree | db4cf018d3cf076a903ebf9f8dbd324cd583d0bb | |
parent | 8d38d97aca8ab6ada7d4f82df170f1532a0592f0 (diff) | |
download | gimp-plugin-img-afb6f84f2c370a4bdf3ca1b398e522a029214eb3.tar.gz |
Respect byte order on saving
-rw-r--r-- | img-save.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)); |