[gimp/metadata-browser] Bug 669188: saving a monochrome bitmap picture ...



commit e1a003ea79fddbcc6a70dbcd842606f0c4214227
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Thu Feb 2 14:11:59 2012 +0100

    Bug 669188: saving a monochrome bitmap picture ...
    
    The colormap was being written within the DIB header.
    It must follow both the mask and color space info.

 plug-ins/file-bmp/bmp-write.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-bmp/bmp-write.c b/plug-ins/file-bmp/bmp-write.c
index ab0b0e3..a3f5631 100644
--- a/plug-ins/file-bmp/bmp-write.c
+++ b/plug-ins/file-bmp/bmp-write.c
@@ -429,7 +429,6 @@ WriteBMP (const gchar  *filename,
   FromL (Bitmap_Head.biClrImp, &puffer[0x20]);
 
   Write (outfile, puffer, 36);
-  write_color_map (outfile, Red, Green, Blue, MapSize);
 
   if (mask_info_size > 0)
     {
@@ -515,6 +514,8 @@ WriteBMP (const gchar  *filename,
       Write (outfile, puffer, color_space_size);
     }
 
+  write_color_map (outfile, Red, Green, Blue, MapSize);
+
   /* After that is done, we write the image ... */
 
   write_image (outfile,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]