Hello IM people,

I'm in the following situation:

I have a "full fat" 32-bit non-indexed TGA file.

This file might have more than 256 unique 32-bit values in it.  I'd like to 
reduce that to a TGA so that it has no more than 256 unique 32-values.  Then 
I'd like to save it with 8-bit entries into a 32-bit palette.

What makes my situation possibly unusual is that I want the alpha channel to be 
treated in exactly the same way as R,G and B in this process.  If two colors 
differ only in their alpha channel, they still count as two seperate colors in 
my problem domain.  In fact, the pixels in the images I'm converting differ 
almost ONLY in the alpha channel (i.e. they're nearly all the same "color", but 
with different "alpha").

I've tried various combinations of -quantize, -colors, -type Palette / 
PaletteMatte, etc.  But the output TGA is always opaque.  When I load the 
output TGA into a hex editor, the Color map entry field (i.e. the eighth byte 
of the TGA) is always 24, where I want 32.

Can anybody tell me what the  -treat-alpha-channel-just-like-the-other-three 
flag is? ;)

Many thanks in advance,

Peter Pimley









__________________________________________________________________________________________________________________________________________
Information contained in this e-mail is intended for the use of the addressee 
only, and is confidential and may be the subject of Legal Professional 
Privilege.  Any dissemination, distribution, copying or use of this 
communication without prior permission of the addressee is strictly 
prohibited.The views of the author may not necessarily constitute the views of 
Kuju Entertainment Ltd. Nothing in this email shall bind Kuju Entertainment Ltd 
in any contract or obligation.

The contents of an attachment to this e-mail may contain software viruses which 
could damage your own computer system. While Kuju Entertainment has taken every 
reasonable precaution to minimise this risk, we cannot accept liability for any 
damage which you sustain as a result of software viruses. You should carry out 
your own virus checks before opening the attachment.

Kuju Entertainment Ltd trading as Zoe Mode

Registered Office : 10 Woodside Park, Catteshall Lane, Godalming, Surrey, UK, 
GU7 1LG. Company Number : 3481384. Company Registered in England.
__________________________________________________________________________________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_________________________________________________________________________________________________________________________________________

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to