TIFF to BMP conversion problem
Münkel Heiko <[email protected]> Mon, 4 May 2020 09:03:15 +0000
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I want to convert a TIFF file with multi images in it to a series of BMP files. The BMP files must have only 8 Bit grey values, coded with PseudoClass and must be subsampled. Therefore I've used the following commands:
1. Conversion to PNG, because I didn't find all these flags for BMP files:
gm convert input.tif -colorspace GRAY -colors 256 -define png:bits-per-sample=8 -format png -resize 418x384 +adjoin png8:"output-%03d.png"
2. Conversion to bmp files in a bash for loop:
for f in `ls *.png`; do gm convert $f bmp/${f%.png}.bmp; done
The output of 'gm identify output-000.bmp' now has the information "PseudoClass 256c". That seems to be right. But if I copy these files on a windows system, the image properties in a file manager pointed out, that the file has a bit depth of 32 bit. But I need 8 bit instead. By the way: Is there a command to check this with Graphicsmagick too?
I know, that this conversion is possible with Graphicsmagic, because I did it already in the past, but I Can't remember how.
How can I do this conversion?
Thanks in advance,
Heiko
_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help