# DeepAR Web SDK changeParameterTexture image from s3

**URL:** <https://forum.deepar.ai/t/deepar-web-sdk-changeparametertexture-image-from-s3/316>\
**Category:** SDK\
**Tags:** web\
**Created:** [May 23, 2023, 6:13pm UTC](https://forum.deepar.ai/t/deepar-web-sdk-changeparametertexture-image-from-s3/316 "2023-05-23T18:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamH](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@AdamH](https://forum.deepar.ai/u/AdamH)\
**Post date:** [May 23, 2023, 6:13pm UTC](https://forum.deepar.ai/t/deepar-web-sdk-changeparametertexture-image-from-s3/316/1 "2023-05-23T18:13:39Z")

</div>

Hi i’m trying to use the `changeParameterTexture` method from the web SDK on our web client but the image we are using to update the texture comes from S3 and not our domain so am getting this error: “SecurityError: Failed to execute ‘getImageData’ on ‘CanvasRenderingContext2D’: The canvas has been tainted by cross-origin data.” Any ideas how we might solve this issue?  
Many Thanks

Adam

---

<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:** [May 25, 2023, 4:52pm UTC](https://forum.deepar.ai/t/deepar-web-sdk-changeparametertexture-image-from-s3/316/2 "2023-05-25T16:52:22Z")

</div>

Hi, this error is not directly related to DeepAR, it simply happens when loading an image from a cross origins domain. You can host your images on the same domain or check this stack overflow thread for more info.

> <https://stackoverflow.com/questions/22097747/how-to-fix-getimagedata-error-the-canvas-has-been-tainted-by-cross-origin-data>
