Img2tga Snesnopic
Use this command to install Img2tga with WinGet:
winget install --id=Snesnopic.Img2tga -e Simple utility to convert images to TGA format
winget install --id=Snesnopic.Img2tga -e Simple utility to convert images to TGA format
A simple command-line utility to convert various image formats (JPG, PNG, etc.) to the TGA format, powered by stb_image and stb_image_write.
Overengineered for fun.
The utility supports both file-to-file and pipe (stdin/stdout) modes.
Provide an input and output path.
# Basic conversion
./img2tga input.jpg output.tga
# Convert with RLE compression
./img2tga -r input.png output_compressed.tga
Pipe data via stdin and redirect the output from stdout.
# Basic conversion
cat input.bmp | ./img2tga > output.tga
# Convert with RLE compression
cat input.jpg | ./img2tga -r > output_compressed.tga
-r : Enable RLE compression for the output TGA file.-h, --help : Show the help message.