Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop serving full size images #44

Open
srosengren opened this issue Nov 3, 2023 · 1 comment
Open

Stop serving full size images #44

srosengren opened this issue Nov 3, 2023 · 1 comment

Comments

@srosengren
Copy link
Collaborator

srosengren commented Nov 3, 2023

All images on the site, for speakers etc are always served in their full resolution even when displayed at a fraction of the size.

  • create a azure function that allows us to query for images and specify sizes. Resizing them on the fly.
  • hide the function behind our current cdn/setup cdn
  • should we look into using more efficient image formata than what we’re using right now? (Mainly jpg, png)
@srosengren srosengren added the high label Nov 3, 2023
@srosengren srosengren assigned srosengren and unassigned srosengren Nov 5, 2023
@ThindalTV
Copy link
Contributor

For simplicitys sake, should we just look up what formats we need, resize them to the correct formats and upload them with "{speakername}-{guid}-400x400" instead of using an azure function behind the cdn, which I'm very not sure how to do. We could do the resizing work in a function and trigger it from https://github.com/Swetugg/swetugg-backoffice/blob/df189bf0e2eb8f73146bec6d06328f5d59301f35/src/Swetugg.Web/Services/ImageUploader.cs#L36.

@ThindalTV ThindalTV self-assigned this Dec 29, 2023
@ceciliasharp ceciliasharp removed the high label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants