Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Last active May 28, 2023 14:29
  • Star 25 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Let Google cache and resize your images
function getUrl(width, url) {
return 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy'
+ '?container=focus'
+ '&resize_w=' + width
+ '&url=' + url
;
}
getUrl(250, 'http://andshelived.files.wordpress.com/2008/10/killer-mater.jpg');
@SonOfCrypto
Copy link

Hi @coolaj86,

I tried to mention you in my README.md, but it is not working. So I hope you will read this :)
I used your function in my responive images code repository https://github.com/janwagner/respio

Thank you :) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment