Search Issue Tracker
Won't Fix
Votes
0
Found in
Issue ID
921215
Regression
No
ImageConversion.LoadImage should load PNGs without alpha channel as RGB24 instead of ARGB32
Expected: loading a non-transparent PNG with ImageConversion.LoadImage results in an RGB24 texture, just like JPG.
Actual: loading a non-transparent PNG with ImageConversion.LoadImage results in an ARGB32 texture.
JPG loads in RGB24, but PNG always loads in RGBA, even if the loaded image has no alpha channel.
-
Yiming075
Dec 08, 2022 06:47
Unity should add a parameter to enable loadImage in RGB24 and ARGB32! Don't just ask us to use the lossy jpg format!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
Resolution Note (2019.3.X):
if we change this behavior now, we may break tons of existing projects ( using PNG without alpha, and dealing with RGBA resulting texture)
Work around to generate RGB 24bits texture is using bmp or jpg if disk storage is an issue