# Using non power of 2 image sizes for UMG widgets on mobile (iOS)

**URL:** <https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [June 14, 2019, 12:16am UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482 "2019-06-14T00:16:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![indiejames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@indiejames](https://forums.unrealengine.com/u/indiejames)\
**Post date:** [June 14, 2019, 12:16am UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/1 "2019-06-14T00:16:06Z")

</div>

Is it possible to use non power of 2 sized images with UMG widgets on mobile devices (specifically iOS)? I have read conflicting things, but mostly what I have read is that for UMG widgets textures/images don’t have to be power of 2 sized. But when I tried to use irregular sized images for my widgets I get filler textures that seem to indicate they need to be power of 2 sized when deploying to my iPhone 6 (as shown here):

 ![IMG_CA770C13E6B81.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/0/e0b906e1f505cd8da9d9cb8ca0bbb276ee1323c8.jpeg)

I’m hoping there is some setting that can fix this, but if they must be power of 2 sized, how can I set texture coordinates when creating a brush from the texture in a blueprint? If I have an image padded to a power of 2 for height/width, I only want the original image to show up in my UMG widget, not the padding. But there doesn’t seem to be any way to do this with the MakeBrushFromTexture node.

---

<div class="post-metadata">

**Author:** ![indiejames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@indiejames](https://forums.unrealengine.com/u/indiejames)\
**Post date:** [June 14, 2019, 1:08am UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/2 "2019-06-14T01:08:18Z")

</div>

Digging a bit deeper I see that I can create materials from my padded textures and set the UV coordinates to crop the padding, but this seems like a lot of extra work for what should be a simple thing. And elsewhere I see recommendations to not use materials for UMG widgets.

Update:  
It seems I can use TexturePacker to create a sprite sheet that Unreal Engine can interpret as a Paper 2D sprite sheet, and that I can set the image for my button widgets to point to the sprites in the sprite sheet. This is a reasonable workflow for me.

---

<div class="post-metadata">

**Author:** ![Nizami\_Nz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nizami\_Nz](https://forums.unrealengine.com/u/Nizami_Nz)\
**Post date:** [September 14, 2019, 5:16am UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/3 "2019-09-14T05:16:52Z")

</div>

I also had such problems. I created a list of optimal sizes for a phone game.  
For Background (2220x1249)  
For button (262x270) (600x426)  
For inscriptions or long buttons (1234x416)  
I experimented for a long time and these sizes always work on all devices.

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [September 15, 2019, 10:49am UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/4 "2019-09-15T10:49:07Z")

</div>

This is badly documented, however for UI you can make non-power of two textures work on iOS by setting texture’s compression to UserInterface2D

---

<div class="post-metadata">

**Author:** ![Skylonxe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skylonxe](https://forums.unrealengine.com/u/Skylonxe)\
**Post date:** [November 28, 2019, 4:18pm UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/5 "2019-11-28T16:18:32Z")

</div>

Seems like you can use “Default” texture compression instead of inefficient UserInterface2D, however you need to disable PVRTC compression in iOS settings and enable ASTC compression there too.

---

<div class="post-metadata">

**Author:** ![gsudhanthiran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gsudhanthiran](https://forums.unrealengine.com/u/gsudhanthiran)\
**Post date:** [September 7, 2020, 2:09pm UTC](https://forums.unrealengine.com/t/using-non-power-of-2-image-sizes-for-umg-widgets-on-mobile-ios/127482/6 "2020-09-07T14:09:16Z")

</div>

Unreal is not allowing to even import a non-power of 2 image, how to bypass this?
