# Fix / Explanation: PNG transparency artifacts when importing Photoshop Exported into Content

**URL:** <https://forums.unrealengine.com/t/fix-explanation-png-transparency-artifacts-when-importing-photoshop-exported-into-content/2220654>\
**Category:** Asset Creation\
**Tags:** alpha, art, png, unreal-engine, texture-channel\
**Created:** [December 14, 2024, 6:39pm UTC](https://forums.unrealengine.com/t/fix-explanation-png-transparency-artifacts-when-importing-photoshop-exported-into-content/2220654 "2024-12-14T18:39:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alyatirno](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alyatirno/32/973470_2.png) [@Alyatirno](https://forums.unrealengine.com/u/Alyatirno)\
**Post date:** [December 14, 2024, 6:39pm UTC](https://forums.unrealengine.com/t/fix-explanation-png-transparency-artifacts-when-importing-photoshop-exported-into-content/2220654/1 "2024-12-14T18:39:59Z")

</div>

This problem was doing my skull in so I decided to take a deep dive into it because I wanted to get to the root causes and how to address it.

PROBLEM: PNGs exported from Photoshop will bring “garbage” color information when imported into Unreal.

EXPLANATION: Photoshop by default, preserves the color information in the image the PNG, and where the alpha is fully transparent, it saves white (R255,G255,B255), otherwise it saves whatever color that pixel has. Other programs such as Affinity Photo, erase that color information, if there is any transparency, it saves black (R0,G0,B0).

This posts suggests to use SuperPNG where you get a little more control over the Export which is a good suggestion, specially if you plan to use that texture with Pre-Multiplied Alpha (AlphaComposite), which is cheaper than translucent, I hear.

[https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557](https://forums.unrealengine.com/t/fix-white-border-around-imported-ui-elements-using-png-alpha-transparency/1968557)

However that does throw the Color information arbitrarily away. And you may want to keep it.

For instance, you will get a much better mask if the color data on the Image matches the one that is going to be transparent. if you are using translucent or masked.

Take this image for example:

 ![Example1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/6/b06553ab18d0cce644cd5a034287f553e9ff177e.png)

If you simply save that as a PNG and import into unreal you will get this

 ![Example2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/3/7f34073731d5ac400f273b7647cc6cafef7a514a.png)

If you use SuperPNG to clean it

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/f/c6f5e226933ca4430a1a4dba4a320ad5449def06.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/6/666d65fe85c1ae6621f381e54edf5cbe2ff2a533.png)

However, if you use a Masked Material or a Translucent material you will notice a darker edge on your alpha, especially against a background that has the opposite value of the alpha.

Masked Result

 ![Masked Result](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/b/e2bcdd03dc493d5ee5280e1198f9c9e31eb1a111.jpeg)

 ![Translucent Result](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/f/29f1e0a019afe5ab96d0c4a44a62f99116c08143.jpeg)

Ideally, the color information there would be the same color that you are making transparent, so those edge artifacts will disappear.

To achieve that, what you can do is Save your transparency as an Alpha Channel

but ensure that the pixels that you are going to be masking are the same color as the ones that are not

 ![Full Color Information](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/f/cff700f74c15f86f560a066c99af87cddc549412.png)

Then, use SuperPNG to save that PNG, with Alpha for transparency but without “Clean Transparent”

 ![Alpha No Clean Transparent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/5/5a5d81f4a320ddce33585a1a06233efdf3e10e0c.png)

 ![No Edge Artifact](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/8/ad8440237eea8bee1ad2d31a36d7f45b73a4b642.jpeg)

Here are the results three different workflows

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/8/e78d4f2585ca3e5d726c86fbce3eef3d6e47b033.png)  
Simon\_A: Default Photoshop Behavior  
Simon\_B: SuperPNG with “Clean Transparent”  
Simon\_C: SuperPNG with the transparency saved in the Alpha Channel and no Clean Transparent.

---

<div class="post-metadata">

**Author:** ![Alyatirno](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alyatirno/32/973470_2.png) [@Alyatirno](https://forums.unrealengine.com/u/Alyatirno)\
**Post date:** [December 14, 2024, 8:03pm UTC](https://forums.unrealengine.com/t/fix-explanation-png-transparency-artifacts-when-importing-photoshop-exported-into-content/2220654/2 "2024-12-14T20:03:40Z")

</div>

If you import a PNG and you are getting “garbage” in Unreal and then open it in photoshop and it looks fine

there is a way to recover that garbage information

Go to Layer \> Layer Mask \> From Transparency to move that transparency into a Mask

 ![Shrugging Skull](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/6/6c698a749cc6b7e47a643cf2849956f74151fa38.png)

Then set the properties of that Mask to Density 0%

 ![Screenshot 2024-12-14 093209](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/9/9a9eec5fb74ebb2c16490c3e805b204cbec3d09b.png)

and BAM! there it is, all that garbage is back!

Hurray, now how did that garbage information got created in the first place?

Well I’m glad you asked.

When an artist creates an image in photoshop and saves it as PNG, photoshop is creating that invisible color information but obscuring it from the artists, why should they care right?

Let’s say they create a Circle selection and paint it with a gradient

 ![CircleSelection](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/1/a814ecdf452bd202fb3a88568786db8fadadddeb.png)

photoshop will paint color information into the BOUNDS of that selection, So whey it gets saved, the color information actually looks like this.

 ![Color Info in Unreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/e/ebe579f08106c428eaa6c1093be28f2302ee87ab.png)

the same applies if they try to use the lasso and paint inside the selection

 ![Photoshop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/b/4dbe498fdb9ee7412c342a56e4b63dd9b7e8dd03.png)

The artist has no idea that this is what we are getting in unreal, because photoshop doesn’t tell them that.

 ![Unreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/8/e683899a006e24bb71730bc2f329d05467fad6e4.png)
