jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

Picture turn upsidedown? #228

Open stefan520 opened 7 years ago

stefan520 commented 7 years ago

I really dont know why. But it's just starting take pictures upsidedown?! Maybe because a new update for Firefox on android?

ScottDellinger commented 7 years ago

I'm experiencing this as well (Firefox on Android). Captures the image upside-down. Any suggestions on how to remedy?

jhuckaby commented 7 years ago

I need to know that hardware / OS / browser you all have. And does it happen on preview but also after submission? Also, please let me know if the following all exhibit the upside down pictures as well:

ScottDellinger commented 7 years ago

I'm using the latest Android on a Pixel phone. The issue only occurs in Firefox. Chrome works fine.

Previewing the camera is fine... you can look at yourself and the image/video feed is right-side-up. But when you take a snapshot, the image becomes inverted.

I just tested it on the links above and a couple of them wouldn't even load the camera in Firefox, but on the rest, the issue was the same. Preview is fine, but when you snapshot, captured image is inverted.

jhuckaby commented 7 years ago

Dang, unfortunately I don't have an Android device, so I can't reproduce this. It works fine in Firefox on OS X and Windows, so it must be an Android Firefox issue. Since you can reproduce it in other libraries, sounds like it may be a Mozilla bug inside the getUserMedia system. Normally I'd file a bug at Bugzilla for them to look at, but since I can't reproduce, I shouldn't be the one to do it.

If you were able to reproduce the bug using this demo at David Walsh's blog, then we really must have a Mozilla getUserMedia bug in Android Firefox, because his implementation is the most simple, and doesn't use any 3rd party libraries. If you want, please head over to Bugzilla and file a bug for this (include a link to David Walsh's page). They'll take a look at it.

Thanks!