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

Graphics - General

-

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.

  1. Response avatar

    Resolution Note (fix version 2019.3):

    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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.