Truevision Targa (TGA)
TGA format is a hardware-oriented bitmap supporting compression. It allows storing images with up to 32-bit color depth, is quickly read and unpacked. The following paremeters are used to adjust settings of this format:
- bpp - color depth (default - 24 bpp)
- rle - RLE compression (default - no)
- quant - quantization levels (default - 8)
- dither - dithering (default - yes)
bpp
Bpp parameters specifies the number of bits used to transfer the color of one pixel. Its allowed values are:
- 8 - 8 bpp (Indexed)
- 15 - 15 bpp (Hi color)
- 16 - 16 bpp (Hi color with transparency)
- 24 - 24 bpp (True color, RGB)
- 32 - 32 bpp (True color, RGBA)
The default value is: 24.
Example:
rle
Rle parameter specifies whether the resulting files will be compressed with the help of RLE algorithm. Its allowed values are:
- yes - RLE compression is used.
- no - RLE compression is not used.
The default value is: no.
Example:
quant
Quant parameter reduces the number of distinct colors used in an image while preserving visual image quality. Quant parameter can accept a whole number from 0 to 8.
The default value is: 8.
Example:
dither
Dither is a form of noise, or 'erroneous' signal or data which is added to sample data to minimize quantization error. Dither parameter can accept two values: yes and no.
The default value is: yes.
Example:
general example
ICPCL.exe -convertto tga bpp:8 rle:yes quant:2 dither:no -source "C:\Original files" -dest "C:\Converted files"
tips
-
Quant parameter should only be used if bpp parameter is set to 1, 4 or 8 bpp.
Example:
ICPCL.exe -convertto tga bpp:8 quant:3 -source "C:\Original files" -dest "C:\Converted files" -
Dither parameter should only be used if bpp parameter is set to 1, 4 or 8 bpp.
Example:
ICPCL.exe -convertto tga bpp:8 dither:no -source "C:\Original files" -dest "C:\Converted files"