So funny, your module came JUST in time. We had written the specs what we needed to build and then did a last Google search and saw your repo, doing exactly what we needed to build!
Anyway, small question. We are building a product grid and have tons of images on each page and therefor wanted to implement this. Since the large range of devices and devicePixelRatio's we need to implement, we want to keep our list of generated images as small as possible and still provide the best user experience possible.
At the moment if we want to achieve this, we need to provide the following:
If the device pixel ratio's aren't added it will multiply the width and height values of refDim values by devicePixelRatio. This way the above automatically works.
Hi there!
So funny, your module came JUST in time. We had written the specs what we needed to build and then did a last Google search and saw your repo, doing exactly what we needed to build!
Anyway, small question. We are building a product grid and have tons of images on each page and therefor wanted to implement this. Since the large range of devices and devicePixelRatio's we need to implement, we want to keep our list of generated images as small as possible and still provide the best user experience possible.
At the moment if we want to achieve this, we need to provide the following:
You see where this is going, we have a lot of duplicate URL's and that is not really the use case we are going after.
It would be nice if we could do the following:
If the device pixel ratio's aren't added it will multiply the width and height values of
refDim
values bydevicePixelRatio
. This way the above automatically works.I can create a PR for this, if you'd like.