Hi,

I'm trying to convert a TrueColorMatte type tga image to a PaletteMatte
type tga image. The reason I want PaletteMatte is that i want to have a
palette with alpha value in it. So quantization of the RGBA space
instead of just the RGB space. I thought the following command should
work, but for reasons unclear to me I always get a Palette type tga:

convert in.tga -type PaletteMatte out.tga

Verbose identify output of both images below

Any ideas?

Thanks,
k|p



in.tga:

  Format: ICB (Truevision Targa image)
  Class: DirectClass
  Geometry: 128x128+0+0
  Type: TrueColorMatte
  Endianess: Undefined
  Colorspace: RGB
  Channel depth:
    Red: 8-bit
    Green: 8-bit
    Blue: 8-bit
    Alpha: 8-bit
  Channel statistics:
    Red:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 194.966 (0.764574)
      Standard deviation: 80.4788 (0.315603)
    Green:
      Min: 73 (0.286275)
      Max: 255 (1)
      Mean: 226.469 (0.888114)
      Standard deviation: 40.535 (0.158961)
    Blue:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 166.686 (0.653671)
      Standard deviation: 108.922 (0.427145)
    Alpha:
      Min: 255 (1)
      Max: 0 (0)
      Mean: 65413.1 (0.521988)
      Standard deviation: 126.326 (0.495394)
  Alpha: rgba(255,255,255,0)    #FFFFFF00
  Colors: 5200
  Rendering intent: Undefined
  Resolution: 72x72
  Units: Undefined
  Filesize: 64.043kb
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: none
  Page geometry: 128x128+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: Undefined
  Signature:
6da81c1c3fe1f7659c26276ef31513a2304f808a917ce8b5269dc8ae4479a5ba
  Tainted: False
  Version: ImageMagick 6.3.3 03/21/07 Q16 http://www.imagemagick.org

out.tga:

  Format: TGA (Truevision Targa image)
  Class: PseudoClass
  Geometry: 128x128+0+0
  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: 194.966 (0.764571)
      Standard deviation: 80.4451 (0.315471)
    Green:
      Min: 76 (0.298039)
      Max: 255 (1)
      Mean: 226.432 (0.887969)
      Standard deviation: 40.6067 (0.159242)
    Blue:
      Min: 0 (0)
      Max: 255 (1)
      Mean: 166.769 (0.653998)
      Standard deviation: 108.808 (0.426697)
  Colors: 256
  Histogram:
        18: #004C00 rgb(0,76,0)
            ... REMOVED ...
      8740: #FFFFFF white
  Colormap: 256
         0: #004C00 rgb(0,76,0)
            ... REMOVED ...
       255: #F9F6F8 rgb(249,246,248)
  Rendering intent: Undefined
  Resolution: 72x72
  Units: Undefined
  Filesize: 16.7676kb
  Interlace: None
  Background color: white
  Border color: rgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Page geometry: 128x128+0+0
  Dispose: Undefined
  Iterations: 0
  Compression: None
  Orientation: Undefined
  Signature:
e17853978f756de650b681aa6062897c9d9af17bdf899547ad98e5e630e07153
  Tainted: False
  Version: ImageMagick 6.3.3 03/21/07 Q16 http://www.imagemagick.org
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to