fvisticot
fvisticot

Reputation: 8547

How to define output resolution in Flutter camera plugin?

I need to define output resolution from the flutter Camera plugin By default this plugin generates high level image with several Mb (6MB for an iPhoneX image). I need a compressed version of the image or a lower resolution.

If it is not managed "natively" by this plugin, other plugin to manage resolution and compression are to slow

Upvotes: 1

Views: 1909

Answers (1)

Stefan Wüst
Stefan Wüst

Reputation: 11

The CameraController lets you define a Resolution like that:

_controller = CameraController(
  camera,
  ResolutionPreset.medium
);

Upvotes: 1

Related Questions