Skip to content

πŸ–ΌοΈ feat: Avatar GIF Support & Dynamic Extensions #7657

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

berry-13
Copy link
Collaborator

@berry-13 berry-13 commented May 31, 2025

Summary

  • ✨ Avatar Processing Enhancements:

    • πŸŒ€ Support for animated GIFs: Avatars preserve animation during upload and resizing
    • πŸ“› Dynamic file extension assignment: Ensures correct naming across S3, Firebase, Azure, and Local storage
    • πŸ› οΈ Centralized resizing logic via resizeAvatar: Standardizes 250x250px square cropping for all avatars
  • πŸ–₯️ Server-Side Improvements:

    • πŸ—οΈ Refactored uploadAgentAvatarHandler: Integrates new resizing logic and dynamic storage strategies
    • πŸ“ Enhanced metadata handling: Uses sharp to reliably extract image properties
  • πŸ‘€ Client-Side Updates:

    • πŸ”‘ Added key to AgentAvatarRender: Ensures correct React re-rendering on avatar change

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

I've tested the upload functionality with both .png and .gif image files.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.

…on based on image format. GIF upload is now supported
@berry-13 berry-13 changed the base branch from main to dev May 31, 2025 19:41
@berry-13 berry-13 added the ✨ enhancement New feature or request label May 31, 2025
@danny-avila danny-avila changed the title πŸ–ΌοΈ feat: Enhance Avatar Uploads with Animated GIF Support & Dynamic Extensions πŸ–ΌοΈ feat: Avatar GIF Support & Dynamic Extensions Jun 2, 2025
@danny-avila danny-avila merged commit 442b149 into dev Jun 2, 2025
7 checks passed
@danny-avila danny-avila deleted the feat/gif-avatar-handling-rebased branch June 2, 2025 11:51
arthurolivierfortin pushed a commit to arthurolivierfortin/LibreChat-Fork that referenced this pull request Jun 4, 2025
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants