MPS Lossless Image Compression Docs Now Live โ
The integration guide for lossless compression in MPS image processing is now live. It uses the existing ProcessImage API โ set ImageTask.EncodeConfig.ImageEncodeConfig to re-encode an image and cut its size substantially while keeping it visually lossless.
| Parameter | Description |
|---|---|
Format | Output format. Defaults to the source format; the doc examples use AVIF |
Quality | Relative quality 1โ100 (relative to the source image). Defaults to the source quality |
1. Measured Compression โ
Results from testing two large images with AVIF + Quality=50:
| Image | Original (MB) | Compressed (MB) | Size reduction |
|---|---|---|---|
| Image A (2752ร1536) | 4.54 | 1.07 | 76.3% |
| Image B (550ร3072) | 16.47 | 3.59 | 78.2% |
These are reference values. Compression depends heavily on image content โ verify with your own assets.
2. Before You Start โ
"Lossless" here means visually lossless, not bit-exact mathematical lossless compression.
To compress without changing dimensions, omit
TransformConfigentirely.If
OutputStorageis omitted, the output inherits the storage location of the input file.