uploadcare / uploadcare-widget

Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
https://uploadcare.com/products/file_uploader/
BSD 2-Clause "Simplified" License
227 stars 102 forks source link

Add a setting to control default mirror state in camera tab #760

Closed optlsnd closed 4 years ago

optlsnd commented 4 years ago

By default, the widget mirrors the image from the user's web camera. Some users use 3rd-party OCR services with images captured with the widget, and it doesn't work properly with mirrored images.

It could be solved by adding a setting that controls default mirroring in the camera tab. For example,

UPLOADCARE_CAMERA_MIRROR_DEFAULT = true; // mirroring by default UPLOADCARE_CAMERA_MIRROR_DEFAULT = false; // no mirroring by default

This just controls the initial state, and a user still can on/off mirroring with the button in the tab.