can't create xc:black ppm in truecolor

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

If you look at the first few lines of black.ppm does it say P6? That indicates the image is truecolor. If not, try ImageMagick 6.2.9, the latest release. It works for us. You can also try setting the output file to pnm:black.ppm.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: can't create xc:black ppm in truecolor

Post by glennrp »

wms wrote: but all I get is Type: Bilevel, Colorspace: Gray and Channel depth: Gray: 1-bits...

"identify" analyzes the image not the file. Even if your image is PPM, "identify" will look at the pixels and see that they are all black or white,
and then report what you saw. If you really want to know what is in the file, use a bit-dumper like "od -c file.ppm" and (as mentioned above) look for the string "P6" at the beginning of the file.

Glenn
Post Reply