Compressing Images
ADSentertainment
Member Posts: 397
So I've been compressing images to shrink the file size of my game (and to make the game overall run more smoothly) and some images show up with a completely white background. Is there any way to fix this?
Having trouble with your game? Sounds like a personal problem.
Comments
GS doesn't support compressed images. What I personally do is use tinypng.com to reduce the png files by 70% then I drop the whole GS file into a program made by @Manto1 which can be found here.
http://forums.gamesalad.com/discussion/comment/473662#Comment_473662
And it corrects the png'a to a file that GS supports. It works everytime.
By compressing I take it you mean reducing the bit depth ?
Compressing your images does not make your game run more smoothly, all images are held in 24/32bit colour space when running on the device, so for example if you start out with a 24bit image at 1MB, and you squeeze it down to 100kb by reducing the bit depth, then when it is running on the device it will still take up 1MB of memory (all other things being equal).
All compressing an image does is make your game size when it is stored on the device smaller, it has no impact on performance or game size when running, in fact there's an argument to be made that it might be detrimental to performance as compressed images have to be mapped from (for example) an 8bit colour space to a 24bit colour space, wheras 24bit images (uncompressed) don't need this extra process.
As for the white background, I don't know the answer, but GameSalad doesn't support certain image formats that they did it the past, so I would check your image formats (including colour depth) are compatible with current best practice,
@Socks
Hm, alright then. My bad! I thought that maybe it would shrink the loading time of the images. Oh well, still learning I guess @gingagaming answered the question as well, and apparently the application for changing the images. Thanks though!
Having trouble with your game? Sounds like a personal problem.
@gingagaming Awesome, that fixed it, thanks! I also instead of using tinypng, I use ImageOptim, it's really good for batch compressing. I did use tinypng before that though
Having trouble with your game? Sounds like a personal problem.