24 bit Targa problem (ICB)

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
mheans

24 bit Targa problem (ICB)

Post by mheans »

Hi all,

I'm using ImageMagick's C++ interface and have a problem that I cannot solve. I'm trying to read a 24 bit targa file that has an alpha channel but Image::matte() returns false. I can successfully read TrueColorMatte types.

"Identify -verbose 20.tga" returns the following...

Image: 20.tga
Format: ICB (Truevision Targa image)
Class: DirectClass
Geometry: 415x282
Type: Palette
Endianess: Undefined
Colorspace: RGB
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Red:
Min: 0 (0)
Max: 255 (1)
Mean: 95.4923 (0.37448)
Standard deviation: 120.151 (0.47118)
Green:
Min: 0 (0)
Max: 255 (1)
Mean: 94.3509 (0.370004)
Standard deviation: 116.655 (0.45747)
Blue:
Min: 0 (0)
Max: 255 (1)
Mean: 92.2048 (0.361588)
Standard deviation: 116.828 (0.458148)
Colors: 195
Histogram:
67484: #000000 black
** rest of lines removed **
Rendering intent: Undefined
Resolution: 72x72
Units: Undefined
Filesize: 457.166kb
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 415x282+0+0
Dispose: Undefined
Iterations: 0
Compression: None
Orientation: Undefined
Signature: 56d1c679d3a43d2434a01c0dcabe6451af3ede3d1b7578c6a61104b613e1b1e9
Tainted: False
Version: ImageMagick 6.3.1 12/09/06 Q8 http://www.imagemagick.org

Any help would be greatly appreciated.

Thanks,
Mike
mheans

Re: 24 bit Targa problem (ICB)

Post by mheans »

I'm still unable to figure this out..
I can open the image in Paint Shop Pro and retrieve the alpha mask so I know there is one there. Is there a way to perform the same functionality using the c++ interface to ImageMagick?

This post seems to be the same problem I am experiencing...
viewtopic.php?f=1&t=8848

Once again any suggestions would be greatly appreciated.

Thanks,
Mike
Post Reply