lazyload-rails icon indicating copy to clipboard operation
lazyload-rails copied to clipboard

Support for a per-image Placeholder

Open jonyhayama opened this issue 5 years ago • 3 comments

I was wondering if it is at possible to provide support to send a placeholder for every image instead of setting a configuration...

something like this:

<%= image_tag "my-image-hi-res.png", lazy:true, placeholder: "my-image-low-res.png %>

Basically I'm trying to blur up the images as described here

By the way, I'm more than happy to send Pull Request, I'm just checking if it would be welcome :)

jonyhayama avatar Jul 29 '19 14:07 jonyhayama

Go for it 👍 PR welcome

jassa avatar Jul 31 '19 19:07 jassa

Hi guys , is that "placeholder: "my-image-low-res.png" as described above working?

eugenedm avatar Apr 01 '20 16:04 eugenedm

Hi @eugenedm , I sorry I didn't have the time to work on this feature... =/

jonyhayama avatar Apr 03 '20 17:04 jonyhayama