javascript - Resizing and compressing AJAX images in Node/AngularJS application -


i'm building app in angularjs, built on node/expressjs. have list of images hosted externally (and have no access them compress them @ source).

the issue is, these images quite large - ~200kb 600x600 image. don't want serve such large files users, on mobile data caps , whatnot.

is there service (or node module) allow middleman-style way of compressing images angularjs serves user? google pagespeed service (a surprising number of people haven't heard of this, check out, it's awesome) absolutely perfect, except doesn't work ajax images/angularjs.

you have services http://kraken.io/ - matter of hooking url pattern api call optimized image. problem such services aren't scalable (at least cheaply), since using third party bandwidth , processing power.

i advice caching files somehow, on side of things, though. or other way around - hook optimizing changes image list, , serve optimized files end.

doing angular doing each user's computer: limit of 50 files/day lasting (apparently) 1 hour on server, you'll run out of api calls.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -