Skip to content

Mobile camera capture with 'capture' attribute for mv-popup img input #895

Answered by GalinhaLX
GalinhaLX asked this question in Q&A
Discussion options

You must be logged in to vote

Found a way to do it without modifying mavo

codepen here

including it inside the initial <img> 'accept' attribute like this:

accept="image/*;capture=camera"

=> works without Mavo modification
=> in my 'old' phone, under Chrome, proposes me to upload from file, or use camera
=> Compatible with 'cropper' (...except 'cropper' is not mobile friendly at all :( even if I use some kind of scale transformation on mobile)

By the way, I'm interested to have your feedbacks, to know how it works on different devices

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GalinhaLX
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by GalinhaLX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants