# Is there a way to replace background with transparency

**URL:** <https://forum.deepar.ai/t/is-there-a-way-to-replace-background-with-transparency/455>\
**Category:** SDK\
**Tags:** background, web-sdk\
**Created:** [October 11, 2023, 5:15am UTC](https://forum.deepar.ai/t/is-there-a-way-to-replace-background-with-transparency/455 "2023-10-11T05:15:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marble\_Daemon](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/marble_daemon/32/656_2.png) [@Marble\_Daemon](https://forum.deepar.ai/u/Marble_Daemon)\
**Post date:** [October 11, 2023, 5:15am UTC](https://forum.deepar.ai/t/is-there-a-way-to-replace-background-with-transparency/455/1 "2023-10-11T05:15:20Z")

</div>

Can we somehow use `deepAR.backgroundReplacement` with a transparent image to make the rendered background transparent, showing the HTML content beneath the canvas?

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [October 30, 2023, 6:53pm UTC](https://forum.deepar.ai/t/is-there-a-way-to-replace-background-with-transparency/455/2 "2023-10-30T18:53:46Z")

</div>

Hi, while it is theoretically possible to force a transparent background into the deepar effect, the output video stream will still be encoded as a video so it would not display the transparency. You would need a different way to encode and read it.

[https://sdk.developer.deepar.ai/effectTester/index.html?url1=https%3A%2F%2Fdeepar-temporary-resources-prod.s3.eu-west-1.amazonaws.com%2F75d24988-b786-469f-84df-fe91297f9673&name1=Untitled&sdkVersion=5.3.0](https://sdk.developer.deepar.ai/effectTester/index.html?url1=https%3A%2F%2Fdeepar-temporary-resources-prod.s3.eu-west-1.amazonaws.com%2F75d24988-b786-469f-84df-fe91297f9673&name1=Untitled&sdkVersion=5.3.0)
