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

Fix social thumbnails: images #734

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Fix social thumbnails: images #734

merged 1 commit into from
Jan 25, 2024

Conversation

nsarrazin
Copy link
Collaborator

Turns out satori is really slow at rendering PNG, so converting images server-side to JPEG reduces the render time drastically.

We also import the logo directly as an SVG.

This requires a new dependency, sharp for converting images but it works great, pretty happy with it.

@nsarrazin nsarrazin added bug Something isn't working back This issue is related to the Svelte backend or the DB labels Jan 25, 2024
@nsarrazin nsarrazin merged commit 07eb9f0 into main Jan 25, 2024
3 checks passed
@nsarrazin nsarrazin deleted the fix/social_thumbnails branch January 25, 2024 12:33
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant