webgl and compress texture file

hello.
I have the necessity of transfer a lot of image files because i created a sketchup/webgl exporter and i need to send all images files to the javascript script that creates textures.
I ask if exist something that help to compress and send these image or better images transparently and html folder but runtime.

I asking but i believe that may be impossible
thanks.

Please qualify “compress”. Is your aim to save network bandwidth, save GPU space, or both?

If the latter two, then check out squish (article). Great DXT compression lib. There’s also probably several libs and executable tools from NVidia (link1, link2) and/or ATI (link) you might use to help you out.

If you just want to compress for network bandwidth (or to compress further), look at zip, zlib, gzip, etc.