-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add thumbnail generation for images in S3 file API
- Implemented thumbnail generation for image files when requested via the S3 file API. - Added utility functions to check if a file is an image and to generate a thumbnail using the sharp library. - Enhanced error handling to fall back to the original image if thumbnail generation fails. - Updated the image rendering component to request thumbnails by default for better performance and user experience. - Improved error response to include details in development mode for easier debugging.
- Loading branch information
1 parent
145d20b
commit 36632a4
Showing
2 changed files
with
99 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters