Reducing PNG size
glynius
Member Posts: 231
Hi everybody...
i discovered this service
http://tinypng.org/
seems that works fine for reducing png file sizes.
Hope it helps.
i discovered this service
http://tinypng.org/
seems that works fine for reducing png file sizes.
Hope it helps.
Comments
Example (arbitrary made up values for illustrative purposes):
PNG file (on your computer) 5MB
PNG file (as part of your GS app) 5MB
PNG file (loaded into memory on your iDevice) 5MB
Optimized/compressed/colour depth reduced (etc) version:
PNG file (on your computer) 1MB
PNG file (as part of your GS app) 1MB
PNG file (loaded into memory on your iDevice) 5MB
Hope that makes sense!
The files once opened on the device will return to something like the same (memory) size as the original un-optimized images.
As for loading speeds, I can't really comment - if someone who knows about these things could chime in that would be cool . . . but here are my suspicions, with an optimised image there may (a guess) be a conversion stage where the device has to map the image to a 24bit colour space, so I'd expect optimised images to be slower when it comes to loading, but this process could be trivial and the times involved fractional, so it may make very little difference in the real world.
There's some guess work here so If I get the chance I might test this idea.
I don't understand a word of it- but its impressive. Very inspiring.
I guess i'll just stick to the fart jokes while you guys somehow talk about the infrastructure of optimized molecular nano bots.
Very impressed and very useful information in here!
this background image, in several boxes, and save individual images and the compose them in gamesalad, instead of using this background image as a single image?
A 1024 x 1024 image occupies the same amount of memory as four 512 x 512 images or sixteen 256 x 256 images.
2048 x 2048 PNG:
File size on hard drive: 13.3 MB
File size inside GameSalad: 12.5MB
File on device: images 8MB / other 16.9MB / Total 25.7MB
2048 x 2048 PNG [optimized to death, reduced to 2 colours]
File size on hard drive: 354 kb
File size inside GameSalad: 687 kb
File on device: images 8MB / other 17MB / Total 25.9MB
So, while optimizing your PNGs will make your app size smaller, it won't have any effect on performance - or how much RAM the image occupies.
Again probably not the place to ask but you seem very knowledgeable and i'm curious as hell.
Thanks my friend
There are various types of compression, the only thing you really need to know is whether they are lossy or lossless.
Zipping a file is lossless (you can retrieve the data intact and unchanged by unzipping it)
A Jpeg is - famously - lossy, once Jpeg'd there's no going back, data is gone forever.
Generally speaking compressing an image is not like zipping as one is lossless (zipping) and the other is lossy (image compression - although there are lossless image compression schemes around like LZW).
Another tool, I think it's even better.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I think we're missing out on a golden opportunity...
"Don't know how to fold a comforter? There's an app for that!"
Someone beat me to it: https://itunes.apple.com/us/app/how-to-fold-clothes-lite/id582647966?mt=8.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Well I never! :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps