Sanitization & Optimization
When assets are uploaded into the Asset Library, they automatically undergo two sequential processing steps:
Sanitization - ensures assets meet standard formatting, sizing, and metadata requirements while maintaining quality.
Optimization - generates a secondary, lower-weight version of the asset for mobile + web performance efficiency.
After these processes:
The sanitized version replaces the original upload (the original file is not retained).
An optimized version may be created if further reduction in file size can be achieved without unacceptable quality loss. (The user can then select this version by choosing Optimized while adding an asset to a project in PLAY)
1. Sanitization
Purpose
The sanitization process standardizes and re-encodes all uploaded assets. Sanitization should never reduce asset quality.
Removes unnecessary metadata.
Re-encodes files to ensure compatibility.
Applies lossless compression and scaling.
Enforces a uniform format, resolution, and sample rate baseline.
The sanitized version becomes the canonical “original” within the asset library.
If sanitization fails (due to file corruption or unsupported format), the asset is not imported.
Sanitization Key Rules
Sanitization adjusts your files to the below values, unless they already meet the thresholds:
Images
Max Size: 2048 × 2048 px
Format: Preserve original (e.g., PNG remains PNG)
Quality: Lossless re-encode (no perceptible degradation)
Videos
Max Size: 2048 × 2048 px
Format: Preserve original (e.g., MP4)
Max FPS: 30 fps
Quality: Maintain original bitrate and fidelity
Audio
Format: MP3
Max Channels: 2 (Stereo)
Max Sample Rate: 44.1 kHz
Max Bitrate: 128 kbps
Fonts
Format: WOFF2
2. Optimization
Optimization creates a secondary version of the sanitized asset tuned for minimal file size with acceptable visual or audio quality.
This process is more aggressive than sanitization and may result in minor quality reduction.
Behavior
The optimizer evaluates the file size of the sanitized version.
If the optimized result does not yield a meaningful size reduction, the optimized version will not be stored.
Every asset may have up to two versions in the system:
Sanitized
Optimized
Optimization Key Rules
Optimization adjusts your files to the below values, unless they already meet the thresholds:
Images
Max Size: 1024 × 1024 px
Format: WEBP
Quality: Smart optimization (algorithmically determines best compression without visible degradation)
Videos
Max Size: 1024 × 1024 px
Format: MP4 (future: WEBM)
Frame Rate:
>2s duration → 20 fps
≤2s duration → 30 fps
Quality: Medium
Audio
Format: MP3
Max Channels: 1 (Mono)
Max Sample Rate: 32 kHz
Max Bitrate: 32 kbps
3. Editing & Version Handling
When an asset is edited, the sanitized version is always used as the base.
The optimized version is derived from that sanitized base, not from prior optimized iterations.
Last updated