RawImage quality loss in Build Mode

I noticed that RawImage looks much worse in build mode. Whereas in editor it looks identical to the original jpg.

I can recreate this low quality in editor mode if I check “Low Resolution Aspect Ratios” - which makes me wonder if it is related to the aspect ratio?

You can see the differences here:


Any thoughts on what could be causing this?

:+1: I seem to have fixed it by removing compression:

// Create a new Texture2D with no compression
Texture2D texture = new Texture2D(1, 1, TextureFormat.RGB24, false);

// Set the texture to have no compression
texture.filterMode = FilterMode.Bilinear;
texture.anisoLevel = 0;

texture.LoadImage(data);

So it seem that textures being compressed in build mode, and not when running in the editor?