[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/
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Ian Journeaux, 2015/08/17
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Mike Miller, 2015/08/17
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Carnë Draug, 2015/08/24
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp,
Ian Journeaux <=
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Ian Journeaux, 2015/08/24
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Avinoam Kalma, 2015/08/24
- [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp, Mike Miller, 2015/08/25
- [Octave-bug-tracker] [bug #45779] Writing 8-bit grayscale image to bmp file should write an indexed image, Carnë Draug, 2015/08/25
- [Octave-bug-tracker] [bug #45779] Writing 8-bit grayscale image to bmp file should write an indexed image, Ian Journeaux, 2015/08/25
- [Octave-bug-tracker] [bug #45779] Writing 8-bit grayscale image to bmp file should write an indexed image, Carnë Draug, 2015/08/25