_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

FieldTypeMeaning
allowRawbooleanAllows RAW uploads when the camera captured RAW
uploadOriginalbooleanPreserves original bytes without additional upload compression when permitted
maxFileSizeMBnumber | nullHard 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 → JPEG
  • allowRaw: true + RAW camera + uploadOriginal: true → original RAW
  • allowRaw: false + RAW camera → convert to JPEG before upload
  • uploadOriginal: 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).