capacitor-community / capacitor-community/camera-preview

Image size should be added to image response

Open
#68 5 comments 0 reactions 0 assignees View on GitHub
enhancement not a bug
Dominant language
Java
Stars
227
Forks
185
PR merge metrics
No merged PRs in 30d

Description

As plugin not returning image size, we can not control uploaded images size to app. We want to restrict user from uploading big size images. Obviously there is 'quality' config attribute but it's not about image size.

**Describe the solution you'd like**
Either on image response the image size should be returned aswell, so that on frontend size check can be done.
Or On config it should be possible to add max image size and plugin should check the image size.

The "exif" data can contain image size Information.
(Image size in KB )

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.