Problem with .jpeg images

Hi there,

I am unable to load resources when the images have the “.jpeg” extension (".jpg" is fine).
Tested on Monteray 12.1, Windows 10 and Manjaro Linux.

Screenshot 2022-03-01 at 11.08.47

Might this be a bug?

Small note here: You probably shouldn’t be using JPG to begin with. JPG is lossy, so when you save a .jpg you lose some of the detail. Adding them as .jpg to your Defold project won’t reduce in any way the game bundle size, because Defold doesn’t store it internally in the game bundle as .jpg. If anything, the JPEG artifacts will make it harder to compress.

Use PNG :slight_smile:

4 Likes

Hello @dapetcu21,

thank you very much for the tip. You are quite right, I try to reduce the impact of textures on the build size of my 3d project, also, one of my cameras uses the .jpeg extension. I remember now that @Mathias_Westerdahl has told me something similar before. Used to have a better memory :grinning:

ADDENDUM:

I had made the false assumption that texture compression only works for atlases which is why I turned to jpgs for my uv textures. :flushed:
Using a custom profile I have now reduced my aabs dramatically, the result is very nice.
So, thank’s a lot again for your advice!

1 Like