How to create a PCX 4 bits

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
jpiquemal
Posts: 54
Joined: 2003-12-07T01:57:19-07:00

How to create a PCX 4 bits

Post by jpiquemal »

Hello
I try to create a PCX 4 bits - 16 colors from a JPEG 24 bits.

convert -colors 16 test.jpg test.pcx

I always get a PCX with 16 colors, OK, but it's a 8-bits PCX. :(

Any idea ?

jean
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to create a PCX 4 bits

Post by fmw42 »

I don't know PCX or if IM supports 4-bits, but try adding -depth 4 to your command line.
jpiquemal
Posts: 54
Joined: 2003-12-07T01:57:19-07:00

Re: How to create a PCX 4 bits

Post by jpiquemal »

PCX does support 4-bits.
-depth 4 produces a 24-bits PCX :shock:
Post Reply