# Webcam Zooms In when activating blur background

**URL:** <https://devforum.zoom.us/t/webcam-zooms-in-when-activating-blur-background/121490>\
**Category:** Web\
**Tags:** video-sdk, sdk\
**Created:** [November 25, 2024, 6:17pm UTC](https://devforum.zoom.us/t/webcam-zooms-in-when-activating-blur-background/121490 "2024-11-25T18:17:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuelhgf](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samuelhgf/32/60946_2.png) [@samuelhgf](https://devforum.zoom.us/u/samuelhgf)\
**Post date:** [November 25, 2024, 6:17pm UTC](https://devforum.zoom.us/t/webcam-zooms-in-when-activating-blur-background/121490/1 "2024-11-25T18:17:22Z")

</div>

**Description**  
I have a meeting preview page and when I activate the blur for the background the camera Zooms In. During this process, I’m changing the HTML Element from `<video/>` to `<canvas/>`  
If the Canvas element is not being used. After the Zoom In is “applied” is doesn’t goes off

**Browser Console Error**  
No Browser console error

**Which Web Video SDK version?**  
1.12.12

**Video SDK Code Snippets**

```javascript
const toggleBlur = async () => {
    if (isInVBMode) {
      if (isBlur) {
        await localVideoTrack?.updateVirtualBackground(undefined);
      } else {
        await localVideoTrack?.updateVirtualBackground('blur');
      }
      setIsBlur(!isBlur);
    } else if (!isBlur) {
      await localVideoTrack?.stop();
      if (canvasRef.current) {
        await localVideoTrack?.start(canvasRef.current, { imageUrl: 'blur' });
      }
      saveLocalPreferences('blur', !isBlur);
      setIsInVBMode(true);
      setIsBlur(!isBlur);
    }
  };

```

**Screenshots**  
[Screen Record - Dropbox link](https://www.dropbox.com/scl/fi/3acjz69nrb3xqhroxhvrv/zoom-blur-issue.mov?rlkey=uedxtruulaj9w4iw4wf34k5lw&dl=0)

**Device (please complete the following information):**

- Device: Macbook PRO
- OS: macOS 15.1
- Browser: Chrome
- Browser Version 131.0.6778.85 (Official Build) (arm64)

**Additional context**  
This seems to only happen with the built-in Macbook webcam. External webcams or Windows built-in webcams is fine.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [December 2, 2024, 10:05am UTC](https://devforum.zoom.us/t/webcam-zooms-in-when-activating-blur-background/121490/2 "2024-12-02T10:05:07Z")

</div>

Hey @samuelhgf

Thanks for your feedback.

We can also occasionally reproduce this issue.  
From the logs, the video capture aspect ratio might have changed. The blurred video was cropped from 4/3 ratio to 16/9, which makes the video appear slightly zoomed in.

We are still investigating the root cause of this issue.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 1, 2025, 8:05pm UTC](https://devforum.zoom.us/t/webcam-zooms-in-when-activating-blur-background/121490/3 "2025-01-01T20:05:19Z")

</div>

Closed on January 1, 2025, 8:05pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
