Lossless pixels, lossy pixels and reversible recompression of an eligible JPEG bitstream are separate modes. Exact JPEG reconstruction requires its reconstruction data, not just matching rendered pixels. The format name alone does not guarantee lossless output or a smaller file. WebP, AVIF and JPEG XL offer quality and lossless options; HEIC/HEIF use lossy native HEVC. TIFF and JP2 use their implemented lossless variants. PDF offers JPEG or lossless image embedding.
Sample precision & colour
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
TGA
Source
TGA
Truevision TGA
Compression: LosslessTransparency: YesMetadata: Image ID, Extension area (v2)
A straightforward raster format from Truevision, with optional RLE compression and alpha for compatible texture workflows.
JPEG XL fits your delivery use: High-precision photographic storage.
You need a transparency-capable destination and will check its supported variant.
Your receiving application supports the required JPEG XL variant.
You can validate the destination’s sample precision and colour interpretation.
Probably not when
You assume format-level alpha support guarantees matching transparent edges.
You need a guaranteed quality or file size regardless of source and encoder settings.
You require identical samples without a defined colour and precision policy.
TGA to JPEG XL conversion details
Transparency representation
Transparency is carried only by supported source and target variants. SDR paths use 8-bit alpha; EXR uses HALF alpha with premultiplied file samples. GIF reduces alpha to a binary transparent index. HEIC/HEIF output is opaque and auxiliary HEIF alpha input is rejected.
Encoding mode
Lossless pixels, lossy pixels and reversible recompression of an eligible JPEG bitstream are separate modes. Exact JPEG reconstruction requires its reconstruction data, not just matching rendered pixels. The format name alone does not guarantee lossless output or a smaller file. WebP, AVIF and JPEG XL offer quality and lossless options; HEIC/HEIF use lossy native HEVC. TIFF and JP2 use their implemented lossless variants. PDF offers JPEG or lossless image embedding.
Sample precision & colour
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Metadata & colour
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Compression
TGA: Lossless → JPEG XL: Lossy & lossless TGA: TGA can be uncompressed or losslessly RLE-compressed. Attribute bits and version-2 alpha semantics matter; the fourth byte must not automatically be treated as opacity. JPEG XL: Lossless pixels, lossy pixels and reversible recompression of an eligible JPEG bitstream are separate modes. Exact JPEG reconstruction requires its reconstruction data, not just matching rendered pixels.
Conversion keeps the decoded image dimensions unless you edit or resize it. Orientation is applied by supported decoders. ICO fits the image into one selected square size; PDF page layout and rendering DPI are configurable. Device, memory and codec limits still apply.
Metadata
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied.
Common questions
Which compression mode will JPEG XL use?+
Lossless pixels, lossy pixels and reversible recompression of an eligible JPEG bitstream are separate modes. Exact JPEG reconstruction requires its reconstruction data, not just matching rendered pixels. The format name alone does not guarantee lossless output or a smaller file. WebP, AVIF and JPEG XL offer quality and lossless options; HEIC/HEIF use lossy native HEVC. TIFF and JP2 use their implemented lossless variants. PDF offers JPEG or lossless image embedding.
Are bit depth and colour values guaranteed to match?+
Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.
Will metadata and colour profiles be retained?+
This output writer does not preserve source EXIF, GPS or XMP metadata blocks. Original ICC profiles are not copied. Rendered SDR output uses 8-bit display pixels; source precision and original ICC profiles are not retained. Colour handling depends on the decoder and supported source variant.