Skip to content

Instantly share code, notes, and snippets.

@opieters
Last active July 10, 2022 17:50
Show Gist options
  • Save opieters/756c86fdad219867c0f4 to your computer and use it in GitHub Desktop.
Save opieters/756c86fdad219867c0f4 to your computer and use it in GitHub Desktop.
Python script to generate configuration for a lightGallery photo gallery in Jekyll.
@opieters
Copy link
Author

@jeremydouglass indeed! Thanks for pointing this out.

@opieters
Copy link
Author

@easonback26 thank you. Looking good! The idea is that only the optimal image is loaded for given a certain screen size to save bandwidth. For instance, on a phone with a small screen it's not needed to load the image at the highest resolution to get the same DPI. Normally, the libraries used should take care of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment