question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 13 / Android v9 camera resolution flipped and causes zoom-in effect

See original GitHub issue

Describe the bug On iOS 13 it seems like Safari automatically flips cameraWidth and cameraHeight if the camera is opened in portrait mode. Because JeelizResizer is doing a flip as well this causes a double flip and due to that a wrong camera resolution. Which leads to a zoom-in effect.

To Reproduce Steps to reproduce the behavior:

  1. Start Jeeliz with a Resizer
  startJeeliz() {
    window.JeelizResizer.size_canvas({
      canvasId,
      isFullScreen : true,
      callback     : (isError, videoSettings) => {
        this.initFaceFilter(videoSettings)
      },
      onResize: () => {
        if (threeCamera) {
          threeCamera.aspect = CANVAS.width / CANVAS.height
          threeCamera.updateProjectionMatrix()
        }
      }
    })
  }
  1. Pass the video parameters to init
  initFaceFilter(videoSettings) {
    console.log('VideoSettings', videoSettings)
    window.JEEFACEFILTERAPI.init({
      canvasId,
      videoSettings,
  1. Run the app and open the camera stream
  2. See that the video appears to be zoomed in

Expected behavior Camera is opened with correct resolution

Desktop (please complete the following information):

  • OS: iOS 13
  • Browser Safari

Smartphone (please complete the following information):

  • Device: iPhone6s
  • OS: iOS13
  • Browser Safari

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
ThorstenBuxcommented, Nov 14, 2019

Works for me. Thanks @xavierjs

1reaction
xavierjscommented, Nov 13, 2019

Hi @ThorstenBux I have pushed a workaround for IOS13. I hope it will fix your bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone 13 Pro Max Video Camera Zoom Issues
If you are zooming between levels, it is a digital zoom where you are actually magnifying the pixels.
Read more >
Fix iOS 9 Slow Performance & Lag with Three Easy Tips
The end result is that iOS will look less fancy without any translucent windows or crazy zooming in and out motion effects, but...
Read more >
Apple iPhone 13 Smartphone Review - NotebookCheck
In-depth review of the brand-new iPhone 13. The latest generation of Apple's smartphone shines with great battery life.
Read more >
13 Problems with the iPhone 13 Pro & Pro Max - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
DEPSTECH Wireless Endoscope, IP67 Waterproof WiFi ...
... Inspection 2.0 Megapixels HD Snake Camera for Android and iOS Smartphone, ... endoscope camera, it is featured with fixed focus, instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found