# Projection when the canvas is not full screen

**URL:** <https://discourse.threejs.org/t/projection-when-the-canvas-is-not-full-screen/43178>\
**Category:** Questions\
**Tags:** projection, canvas, object3d\
**Created:** [October 3, 2022, 12:20pm UTC](https://discourse.threejs.org/t/projection-when-the-canvas-is-not-full-screen/43178 "2022-10-03T12:20:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vois](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@vois](https://discourse.threejs.org/u/vois)\
**Post date:** [October 3, 2022, 12:20pm UTC](https://discourse.threejs.org/t/projection-when-the-canvas-is-not-full-screen/43178/1 "2022-10-03T12:20:58Z")

</div>

Hi everyone,  
I have a json that returns an object position in 2d coordinates with his previous width and height of image. I would like to transform this 2d coordinates in 3d but proportionally to new width and height dimensions (width: 1920, height: 1080) in threeJS. Could someone help me? Thanks.

```javascript
"image": {
					"width": 2300,
					"height": 1416,
					"x": 50,
					"y": 200
				}

```
