Skip to content

[image_picker] configurable JPEG compression #34523

@abonander

Description

@abonander

When reencoding images with a maxWidth and maxHeight set, the picker plugin currently uses 100% for the JPEG quality level:

100% quality does not mean lossless compression, however; chroma subsampling and DCT coefficient rounding still occurs, so compression artifacts are still going to be introduced.

However, if the user wants to increase the compression level they then have to re-encode again which introduces yet more artifacting, besides being inefficient for multiple reasons.

This should be a good introductory issue for someone wanting to learn about the Flutter native bridge although it would touch both Android and iOS code.

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions