lwe / gravatarify

Awesome gravatar support for Ruby (and Rails) - with unique options like Proc's for default images, or support for gravatar.com's multiple host names.
http://github.com/lwe/gravatarify
MIT License
73 stars 8 forks source link

@2x image sizes #10

Open richardonrails opened 4 years ago

richardonrails commented 4 years ago

When I do this:

<%= gravatar_tag user.email, size: 20, default: 'mm', secure: true %>

It gives:

<img alt="" height="20" src="......?d=mm&amp;s=20" width="20">

However what I'd really want is a way to have the images display @2x for Retina / high DPI screens, where it ask for ?s=40 from Gravatar and display it in an image tag with height/weight=20 still.

Is there any way to do this?

lwe commented 3 years ago

Hi @richardonrails, no this is not possible right now, but I'd happily accept a PR to fix this - and I suppose you can solve it with css.