Hello.
I'm trying to generate a large number of PNG files as test cases for
a project I'm working on.
I can only seem to get imagemagick to generate 8 or 16 bit PNG files,
and judging by messages read on this list in the past, it should support
any bit depth from 1-64.
I'm actually converting a base TIFF file into the various permutations
of color types and bit depths:
convert -depth 1 -type GrayScale base.tiff PNG1:1_grey.png
convert -depth 2 -type GrayScale base.tiff PNG2:2_grey.png
convert -depth 4 -type GrayScale base.tiff PNG4:4_grey.png
convert -depth 16 -type GrayScale base.tiff PNG16:16_grey.png
convert -depth 8 -type TrueColor base.tiff PNG8:8_rgb.png
convert -depth 16 -type TrueColor base.tiff PNG16:16_rgb.png
convert -depth 24 -type TrueColor base.tiff PNG24:24_rgb.png
convert -depth 48 -type TrueColor base.tiff PNG48:48_rgb.png
convert -depth 16 -type TrueColor base.tiff PNG16:16_rgba.png
convert -depth 24 -type TrueColor base.tiff PNG24:24_rgba.png
convert -depth 32 -type TrueColor base.tiff PNG32:32_rgba.png
convert -depth 64 -type TrueColor base.tiff PNG64:64_rgba.png
convert -depth 1 -type PaletteMatte base.tiff PNG1:1_indexed_alpha.png
convert -depth 2 -type PaletteMatte base.tiff PNG2:2_indexed_alpha.png
convert -depth 4 -type PaletteMatte base.tiff PNG4:4_indexed_alpha.png
convert -depth 8 -type PaletteMatte base.tiff PNG8:8_indexed_alpha.png
convert -depth 1 -type Palette base.tiff PNG1:1_indexed.png
convert -depth 2 -type Palette base.tiff PNG2:2_indexed.png
convert -depth 4 -type Palette base.tiff PNG4:4_indexed.png
convert -depth 8 -type Palette base.tiff PNG8:8_indexed.png
etc.
However, a lot of these files come out incorrectly (some even appear
with the actual 'PNG{NN}:' part in the filename):
PNG1:1_grey.png: PNG image data, 64 x 64, 8-bit grayscale,
non-interlaced
(should be a 1-bit monochrome image, it's actually 8 bit gray)
Some refused to appear at all:
convert -depth 8 -type Palette base.tiff PNG8:8_indexed.png
convert: Invalid palette length `8_indexed.png'.
Produced an indexed-alpha image:
convert -depth 8 -type TrueColor base.tiff PNG8:8_rgb.png
I'm fully prepared to concede that I may be using the programs
incorrectly, but this looks like incorrect behaviour to me.
As an aside, there doesn't appear to be a GrayscaleMatte
option.
Any help would be appreciated,
MC
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users