_rivopix.image
Image Formats & Upload Rules
How it works
The camera setting determines the captured image format. The Product QR determines which upload processing options are permitted. A QR can allow RAW uploads but cannot force the camera into RAW mode.
Fields
| Field | Type | Meaning |
|---|---|---|
allowRaw | boolean | Allows RAW uploads when the camera captured RAW |
uploadOriginal | boolean | Preserves original bytes without additional upload compression when permitted |
maxFileSizeMB | number | null | Hard upload size limit in MB; null means no app-side limit |
Defaults when image is absent
- Upload as JPEG
- Maximum image edge: 2048 pixels
- JPEG quality approximately 0.85; soft target approximately 1 MB
- Hard limit: 5 MB
- No RAW upload
Code constants: APIUploadImageDefaults.
Processing examples
allowRaw: true+ JPEG camera → JPEGallowRaw: true+ RAW camera +uploadOriginal: true→ original RAWallowRaw: false+ RAW camera → convert to JPEG before uploaduploadOriginal: true+ permitted format → unchanged file bytes
Security
The image block cannot change the destination domain, path allow-list or authentication. Large uploads must be explicitly permitted by a trusted Product QR (for example, uploadOriginal or maxFileSizeMB: null).