Flurby wrote:Now this has some potential, but your numbers dont make sense to me...? My images folder (I tested in 20.1) was over a gig by itself (not including audio), and just over 800mb if I removed all mod images. I converted them all to webp and they went down to 32mb (without mod images). 800 to 32. I'm going to fiddle with the converter to try and save a bit more quality but the difference in quality is going to be very difficult if not impossible to notice on a cellphone screen.Seifens wrote:Forget jpg... I remembered that renpy supports webp (which can do transparency) so after I got 0.21 I wrote a script to convert everything in the images directory (and made the necessary script edits). The result is that the entire images directory is now less than 50 megs, with individual images being mostly in the 30k range. This puts the game directory at around 600 megs, with 500+ of that being audio. I'm not much of an audio person so I'm not sure how you'd get that down - though I did notice that the files in ambience and music are particularly large for their durations so could possibly stand to be recompressed into ogg or something.
But yeah, thanks for pointing that out!
The numbers look ok to me. I was a bit wary when I saw a 5 meg png turn into a 40k webp - I was worried the compression was garbage, or the transparency got lost or something, but it all seems ok. I can't tell the difference in game. On my end, the images directory was something over a gig, and completely compressed went to 45 megs, which sounds like about the amount of compression you're seeing.
I did end up writing a script to convert the wav files to ogg and it reduced the audio directory from 550 megs to 28 megs, again with no apparent quality loss in game. Though the script changes were more extensive this time. This brings the game directory down to 104 megs.