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

Convert all assistants avatar to jpeg server-side #762

Merged
merged 6 commits into from
Feb 2, 2024

Conversation

nsarrazin
Copy link
Collaborator

This PR converts all avatars to jpeg server side and resize them to fit in a 512px thumbnail. We already had the dependency for thumbnail generation so why not here too!

I also renamed the route /avatar to /avatar.jpg, hopefully this will get picked up by our asset caching

@nsarrazin nsarrazin added enhancement New feature or request back This issue is related to the Svelte backend or the DB labels Feb 2, 2024
@nsarrazin nsarrazin requested a review from gary149 February 2, 2024 09:30
@gary149 gary149 requested a review from mishig25 February 2, 2024 11:44
Copy link
Collaborator

@gary149 gary149 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for me, letting @mishig25 have a quick look

Copy link
Collaborator

@mishig25 mishig25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !

@nsarrazin nsarrazin merged commit 91ec91f into main Feb 2, 2024
3 checks passed
@nsarrazin nsarrazin deleted the fix/convert_all_assistants_to_jpeg branch February 2, 2024 13:53
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* Convert all assistants to jpeg server side, and rename endpoint appropriately

* Improve avatar validation/error display

* preserve aspect ratio on resize

* Update src/lib/components/chat/ChatMessages.svelte

Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>

---------

Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>
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 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants