# Know the displayed resolution

**URL:** <https://discourse.threejs.org/t/know-the-displayed-resolution/7968>\
**Category:** Questions\
**Tags:** textures, materials\
**Created:** [June 6, 2019, 8:11am UTC](https://discourse.threejs.org/t/know-the-displayed-resolution/7968 "2019-06-06T08:11:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Jones](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Jones](https://discourse.threejs.org/u/Alex_Jones)\
**Post date:** [June 6, 2019, 8:11am UTC](https://discourse.threejs.org/t/know-the-displayed-resolution/7968/1 "2019-06-06T08:11:41Z")

</div>

Hello,  
I am trying to know if it is possible to know the resolution of a texture because sometimes my textures are resized (THREE.WebGLRenderer: Texture has been resized from (10000x5000) to (8192x4096) )? Maybe, there is a field in textures but I don’t find it 😕

Thanks you in advance,

Alex

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 6, 2019, 9:14am UTC](https://discourse.threejs.org/t/know-the-displayed-resolution/7968/2 "2019-06-06T09:14:48Z")

</div>

Textures have an [image](https://threejs.org/docs/index.html#api/en/textures/Texture.image) property that contains the textures’s dimensions (`width` and `height`). Keep in mind that you can first access this property when the texture has fully loaded (so when the `onLoad()` callback fires).

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 6, 2019, 9:18am UTC](https://discourse.threejs.org/t/know-the-displayed-resolution/7968/3 "2019-06-06T09:18:52Z")

</div>

BTW: When a texture is resized, the original image is not changed since the resize happens with an internal canvas element in the renderer. So it’s not possible to access the resized dimensions of a texture. Use POT textures or set `Texture.minFilter` to `THREE.LinearFilter` to avoid the resize. Or use a WebGL 2 rendering context.

---

<div class="post-metadata">

**Author:** ![Alex\_Jones](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex\_Jones](https://discourse.threejs.org/u/Alex_Jones)\
**Post date:** [June 6, 2019, 11:07am UTC](https://discourse.threejs.org/t/know-the-displayed-resolution/7968/4 "2019-06-06T11:07:03Z")

</div>

> [@Mugen87](#):
>
> When a texture is resized, the original image is not changed since the resize happens with an internal canvas element in the renderer. So it’s not possible to access the resized dimensions of a texture. Use POT textures or set `Texture.minFilter` to `THREE.LinearFilter` to avoid the resize. Or use a WebGL 2 rendering context.

Thanks for the reply, it’s really helpful and allow me to gain some precious research time !
