# Convert CGM to TGA

Files are processed on our server, and the results are kept for a few minutes so you can download them, then deleted — whether or not you did. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=cgm&to=tga, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "cgm" and to "tga".

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `image`: quality, targetKb, lossless, effort, width, height, fit, focus, allowEnlarge, stripMetadata, rotate, autoOrient, density, page, flip, background, crop

## Questions

### Does converting CGM to TGA lose quality?

Yes, in one way. CGM is vector art that stays sharp at any size, while TGA is pixels: the drawing is rendered at a fixed resolution, and enlarging it later shows those pixels. A TGA holds one page, so only the first page of the CGM comes across.

### Can I convert the TGA back to CGM?

Not here. We can read TGA but no engine of ours writes CGM, so this conversion only goes one way.

### How is a CGM made into a TGA?

In two steps, one after the other, both on our server: the CGM is made into a PNG, and that PNG into the TGA. The PNG in between never leaves the server and is deleted as soon as the second step has read it. The settings on this page are for the second step.

### What can I change about the TGA it produces?

You can choose the width and height, whether to keep the shape, a size by percent, and whether to enlarge.
