Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - <b>tga2jpeg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TGA2JPEG

Convert a Targa image to a JPEG image


Syntax

TGA2JPEG [switches] <cINFILE.TGA> <cOUTFILE.JPG>


Switch

/f
Use fast DCT.

/q<n>
Set quality factor to <n> (default is 6). 10 quality levels are available 
(range: 0 - 9), where 0 represents maximum compression with minimum 
quality, and 9 represents minimum compression, with maximum quality.

/yiq
Use YIQ colorspace instead of YUV (the default). Unless your equipment 
demands the YIQ color model, stay with the default YUV.

/a
Add a colormap to JPEG file. Adds 536 bytes to the file, but makes it 
possible to display multiple images on screen. We recommend you always use 
this option with Sunshow.

/t
Print execution time. Useful for comparing the effects of different options 
or for comparing display times of different file types.


Arguments

<cINFILE.TGA>
Targa file to convert.

<cOUTFILE.JPG>
JPEG file to save converted image to.


Remarks

TGA2JPEG is a Targa to JPEG (DCT) compressor. It can convert Targa 8-, 16-, 
24-, or 32-bit to JPEG format.

This is a file-to-file conversion/processing routine requiring no screen 
memory/grabbing. It does require LIM 4.0 EMS memory for building the JPEG 
image. It is compatible with both Targa compressed and uncompressed.

JPEG uses lossy file compression. That is, in encoding the image some 
information is lost-a tradeoff for the very high file compression that is 
possible.

All implementations of JPEG use compression algorithms that try to discard 
image information to which the human eye is least sensitive and retain 
information to which the eye is most sensitive. How much information is 
discarded-and how much the file is compressed-depends on the quality level 
set with the /q parameter.

Quality levels range from 0 to 9, where 0 represents maximum compression 
with minimum quality, and 9 represents minimum compression, with maximum 
quality. For photorealistic images where quality is important, 10 quality 
level strongly recommended or DCT artifacts may be objectionable.



See Also: T2J3 T2J6 T2J9 TGA2CEG ShowJPEG

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson