My Unity app is downloading a bunch of images from a server. I don’t have control over the format of these images on the server.
Some of the images are not displaying (the red question-mark shows up instead of the image) when they are converted to Texture2D. I found out that the images that are not working show up in the File Properties (in Windows) as a 32 bit depth JPG. The ones that do work only have a 24 bit depth. I don’t know much about encoding, but I know that JPGs don’t have an alpha channel, so I don’t know how they were made with a 32 bit depth. Nevertheless, Unity can’t seem to decode them properly.
Does anyone know how to get these types of images downloaded and converted to Texture2D properly?
(For whatever it’s worth, other image renderers such as Windows Explorer and my web browser show these images just fine)