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.

Home Page:https://uploadcare.com/products/file_uploader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a setting to control default mirror state in camera tab

optlsnd opened this issue · comments

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.