strues / retinajs

JavaScript, SCSS, Sass, Less, and Stylus helpers for rendering high-resolution image variants

Home Page:http://retinajs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<img src="/images/my_image.png" data-rjs="/images/2x/my-image.png" />

brentdodell opened this issue · comments

I didn't know if there was a better place to ask questions.

Is there a way to manually specifying both 2x & 3x versions through data attributes? The following example given in the README seems to only support one. I used rails with digested assets and would prefer not to generate non-digested assets, but would also like to support 2x & 3x. Thanks!

<img
  src="/images/my_image.png"
  data-rjs="/images/2x/my-image.png" />