iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

Please consider inlining image resources as base64 #5

Closed stighackvan closed 11 years ago

stighackvan commented 11 years ago

the chrome extension singlefile has a clever way of inlining all resources for a web page into a single (terribly huge) html file...

among the tricks used, images get inlined as base64 so they don't need to be downloaded or saved in separate files... the incantation looks a bit like this...

background:url('data:text/plain;base64,iVB[and.lots.more.base64-encoded.image.data.goes.here]')

in case of IITC becoming a refugee extension, it would be quite nice if it were more self-contained and didn't depend upon image resources out on the net... and, the file size burden should be small for small icons.

stellarhopper commented 11 years ago

I believe this is implemented in: https://github.com/Fragger/ingress-intel-total-conversion/commits/base64-icons

stighackvan commented 11 years ago

Oh beautiful! awesome!!!! looks to be nicely integrated into the python build system.... great eye, stellarhopper!!

Fragger commented 11 years ago

I have more for getting the plugins doing the same in my moving-forward branch

breunigs commented 11 years ago

probably need to speed this up: https://ingress-verifier.appspot.com/ (essentially the same message they sent me, so I would assume this is compancy policy)

Fragger commented 11 years ago

It is done just need #54 merged. All that really needs to be done after that is #58 and that is not crucial

jonatkins commented 11 years ago

All looks good - will push out a new public release tonight