# Screenshot filename

**URL:** <https://forum.babylonjs.com/t/screenshot-filename/41121>\
**Category:** Bugs\
**Created:** [May 25, 2023, 11:10am UTC](https://forum.babylonjs.com/t/screenshot-filename/41121 "2023-05-25T11:10:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorgu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gorgu/32/30093_2.png) [@gorgu](https://forum.babylonjs.com/u/gorgu)\
**Post date:** [May 25, 2023, 11:10am UTC](https://forum.babylonjs.com/t/screenshot-filename/41121/1 "2023-05-25T11:10:39Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#3CWHY5%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

## CreateScreenshotUsingRenderTarget

filename parameter is ignored

CreateScreenshotUsingRenderTargetAsync is ok

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 25, 2023, 12:15pm UTC](https://forum.babylonjs.com/t/screenshot-filename/41121/2 "2023-05-25T12:15:18Z")

</div>

What is the bug or the question? I’m not following?  
CreateScreenshot does not have a filename parameter

> **[Tools | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/BABYLON.Tools#CreateScreenshot)**
>
> Class containing a set of static utilities functions \[API\]

---

<div class="post-metadata">

**Author:** ![gorgu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gorgu/32/30093_2.png) [@gorgu](https://forum.babylonjs.com/u/gorgu)\
**Post date:** [May 25, 2023, 12:33pm UTC](https://forum.babylonjs.com/t/screenshot-filename/41121/3 "2023-05-25T12:33:21Z")

</div>

right, my bad

## CreateScreenshotUsingRenderTarget only

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 25, 2023, 12:38pm UTC](https://forum.babylonjs.com/t/screenshot-filename/41121/4 "2023-05-25T12:38:49Z")

</div>

Works for me

> **[Babylon.js Playground](https://playground.babylonjs.com/#6R92EB)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![gorgu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gorgu/32/30093_2.png) [@gorgu](https://forum.babylonjs.com/u/gorgu)\
**Post date:** [May 25, 2023, 12:53pm UTC](https://forum.babylonjs.com/t/screenshot-filename/41121/5 "2023-05-25T12:53:14Z")

</div>

CreateScreenshotUsingRenderTarget(  
engine: [Engine],  
camera: [Camera],  
size: number | [IScreenshotSize],  
successCallback?: ((data: string) =\> void),  
mimeType?: string,  
samples?: number,  
antialiasing?: boolean,  
fileName?: string): void

CreateScreenshotUsingRenderTargetAsync(  
engine: [Engine](https://doc.babylonjs.com/typedoc/classes/BABYLON.Engine),  
camera: [Camera](https://doc.babylonjs.com/typedoc/classes/BABYLON.Camera),  
size: number | [IScreenshotSize](https://doc.babylonjs.com/typedoc/interfaces/BABYLON.IScreenshotSize),  
mimeType?: string, samples?: number,  
antialiasing?: boolean,  
fileName?: string): Promise

Okay, thank you. For some reason, I missed it. successCallback?: ((data: string) =\> void),
