Convert TGA to PNG
Turn TGA images into PNG. Same pixels and transparency, without loss.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TGA files on the dialor turn it to pick what to do
TGA images as PNG files.The pixels and the transparency carry over without loss.
What you get
A PNG with the same pixels as the TGA. Transparency stays as it was, and nothing is lost in the conversion. Each TGA becomes one file.
PNG is a lossless format with an alpha channel, so it suits graphics with sharp edges such as game assets, icons and screenshots.
Options
Set Max width or Max height to shrink a large image. The image keeps its shape, and anything already within the limit stays as it is, so nothing is enlarged. Both accept values from 1 to 20000.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
Turn on Grayscale to change colors into shades of gray. This often makes the file smaller, but the colors are gone from the PNG.
When it fails
A TGA that cannot be parsed stops with
input_corrupted. The file is damaged or is not a valid TGA, so there is nothing to read.To go the other way, use PNG to TGA.
TGA and PNG.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
Truevision TGA
Truevision TGA images, common in game assets.
- Extensions
- .tga
- MIME type
- image
/x -tga - Kind
- Images
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same TGA to PNG conversion through the API, for your app or your agent.
$ cv convert photo.tga photo.png$ cv convert photo.tga photo.pngQuestions.What people ask about TGA to PNG.
Yes. The pixels and the transparency stay the same, without loss.
Yes. Set Max width or Max height, and larger images shrink while keeping their shape. Smaller images are never enlarged.
Yes. Set Rotate to 90, 180 or 270 to turn the result clockwise.
The file could not be parsed. The conversion stops because the TGA cannot be read.