miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.69k stars 299 forks source link

sizeRangeSuffixes doesn't work if the preview is embedded using base64 encoding #371

Open nathanbiller opened 2 years ago

nathanbiller commented 2 years ago

Obviously, when a small image is encoded using base64 the name of the file is different. The sizeRangeSuffixes attempt to replace the suffix and ends up just appending it to the base64 encoding which then fails to load. Is there a way to notify the sizeRangeSuffixes that the original small preview is base64 encoded and to provide an alternative base URL with which to swap it out?