# PNG imports as BGRA8 instead of DXT5

**URL:** <https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657>\
**Category:** Rendering\
**Tags:** format, ram, unreal-engine, question\
**Created:** [April 11, 2020, 6:22pm UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657 "2020-04-11T18:22:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alenoba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alenoba](https://forums.unrealengine.com/u/Alenoba)\
**Post date:** [April 11, 2020, 6:22pm UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657/1 "2020-04-11T18:22:05Z")

</div>

I’m importing PNG images to then use as sprites in my game. Up until recently, I’ve had all of them be 1880x3640 pixels, but since those take up 6.6MB of RAM each, I’ve decided to now crop the PNGs and remove all empty space around them. However, I’m running into a problem with the cropped PNGs: Instead of DXT5, Unreal assigns the B8G8R8A8 format to them, which causes the RAM size to skyrocket past 17 MB each instead of the sub-3 I was hoping to achieve!  
I imported both versions with completely default settings and I don’t see a way to change the texture format.  
How can I solve the problem?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 11, 2020, 8:51pm UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657/2 "2020-04-11T20:51:49Z")

</div>

Not sure why this happens. But you can change the compression setting on the asset back to DXT5. There is a bulk edit utility to perform the operation en masse if needed.

> I don’t see a way to change the  
> texture format

Look for _Compression Setting_ dropdown.

---

<div class="post-metadata">

**Author:** ![Alenoba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alenoba](https://forums.unrealengine.com/u/Alenoba)\
**Post date:** [April 12, 2020, 9:38am UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657/3 "2020-04-12T09:38:38Z")

</div>

It’s still set to Default (DXT1/5, BC1/3 on DX11).  
No matter what I change the Compression Settings to, it stays as B8G8R8A8. The only exception is Grayscale, which sets it to G8 (but only if I disable sRGB).

---

<div class="post-metadata">

**Author:** ![Alenoba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alenoba](https://forums.unrealengine.com/u/Alenoba)\
**Post date:** [April 13, 2020, 2:34pm UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657/4 "2020-04-13T14:34:28Z")

</div>

Turns out that in order to enable compression settings other than B8G8R8A8, the texture’s width and height must both be a multiple of 4, although they don’t need to be the same. This doesn’t seem to be documented anywhere though.  
So for any unfortunate souls who find their way through the internet to this question: Make sure your textures’ dimensions are multiples of 4!

---

<div class="post-metadata">

**Author:** ![Low5ive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Low5ive](https://forums.unrealengine.com/u/Low5ive)\
**Post date:** [January 14, 2025, 3:54pm UTC](https://forums.unrealengine.com/t/png-imports-as-bgra8-instead-of-dxt5/463657/5 "2025-01-14T15:54:12Z")

</div>

Using 5.3; I just came to this solution in reverse.

I needed B8G8R8A8 and could not get it; changing compression settings appeared to work, but did not enable the appropriate functions that would indicate it was working.

3 hours of tweaking later, turns out if your png resolution is in power of 2, UE treats it as whatever DXT1 is no matter what.

I just had to change the resolution of the png to be odd numbers.
