# Change Image Dimensions Dynamically

**URL:** <https://forums.unrealengine.com/t/change-image-dimensions-dynamically/429068>\
**Category:** Rendering\
**Tags:** Mobile, resize, unreal-engine, question\
**Created:** [July 10, 2018, 6:57am UTC](https://forums.unrealengine.com/t/change-image-dimensions-dynamically/429068 "2018-07-10T06:57:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoahBeggs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NoahBeggs](https://forums.unrealengine.com/u/NoahBeggs)\
**Post date:** [July 10, 2018, 6:57am UTC](https://forums.unrealengine.com/t/change-image-dimensions-dynamically/429068/1 "2018-07-10T06:57:26Z")

</div>

Hey all. Was wondering if anyone knows a way to dynamically change image dimensions in UE4?

I am working on a mobile app, and know that textures for mobile apps are required to have power of two dimensions (e.g. 64, 1024, etc.). However, I would eventually like for people to be able to upload their own images for textures, and obviously most people won’t upload an image with those specific dimensions.

The images are being used for textures in a material applied to static meshes.

Any suggestions are much appreciated!

---

<div class="post-metadata">

**Author:** ![IndieGameCove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IndieGameCove](https://forums.unrealengine.com/u/IndieGameCove)\
**Post date:** [July 10, 2018, 7:36am UTC](https://forums.unrealengine.com/t/change-image-dimensions-dynamically/429068/2 "2018-07-10T07:36:32Z")

</div>

you could probably just bake it into a render target, that would squish the image into the right size and it’s pretty easy to set up.  
The problem you’d run into is that the image would be distorted to make it fit unless you can figure out how to do a crop beforehand.
