yue1123/img-previewer

Solution for separate thumbnail/preview resolution

Closed this issue · 1 comments

Hey! Came across this project today when on the lookout for an image lightbox that suits my needs.

The issue I ended up having is that it relies on images being loaded on the page at preview size i.e. at a larger size than they need to be in the context of the page layout, which is an obvious downnside re: performance.

Perhaps this can be solved with an enhancement that leverages a larger image path in a data attribute, or similar (this seems to be the way other libs handle it, at least).

Doh! As soon as I posted this I saw dataUrlKey option, which for some reason I totally missed before.