Service Layer low complexity mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Client-side Dart service that compresses captured or selected images to a maximum of 1 MB before upload using flutter_image_compress. Reduces mobile data consumption and ensures consistent payload sizes regardless of device camera resolution, preserving JPEG or PNG output format.

Feature: Receipt Photo Upload

image-compression-service

Responsibilities

  • Compress image binary to a configurable maximum size using flutter_image_compress
  • Preserve original JPEG or PNG output format
  • Return compressed File and report output size for logging

Interfaces

compress(file: File, maxSizeKb: int) -> File
getOutputSizeKb(file: File) -> int

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component