octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produce


From: Ian Journeaux
Subject: [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp
Date: Mon, 24 Aug 2015 17:23:36 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

Follow-up Comment #3, bug #45779 (project octave):

I ran the following on my computer running win7 and Octave 4.1.0+.


imwrite (rand(100) > 0.6, "bool.bmp")
imwrite (randi ([0 255], 100, 100, "uint8"), gray (256), "with-gray-map.bmp")
imwrite (randi ([0 255], 100, 100, "uint8"), cubehelix (256),
"with-color-map.bmp")
imwrite (randi ([0 255], 100, 100, 3, "uint8"), "without-map-rgb.bmp")
imwrite (randi ([0 255], 100, 100, "uint8"), "without-map-gray.bmp")


After installing GraphicsMagick, gm returns


Depth: 1 bits-per-pixel component
Depth: 8 bits-per-pixel component
Depth: 8 bits-per-pixel component
Depth: 8 bits-per-pixel component
Depth: 8 bits-per-pixel component


respectively
So things might look correct. 

Unfortunately both Windows and ImageJ reports the last two Without-Map images
as 24bit. The size of the image files are also different. 
With-Map versions are 11kb while the Without-Map versions are 30kb.

 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45779>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]