Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ see: [Web Search Object Structure](/docs/configuration/librechat_yaml/object_str
<OptionTable
options={[
['enabled', 'Boolean', 'Enables or disables client-side image resizing functionality. Default: false.', 'enabled: true'],
['minFileSizeKB', 'Number', 'Minimum file size threshold in KB for resizing. Files smaller than this value are not resized. Default: 200.', 'minFileSizeKB: 200'],
['maxWidth', 'Number', 'Maximum width in pixels for resized images. Images wider than this will be resized. Default: 1920.', 'maxWidth: 1024'],
['maxHeight', 'Number', 'Maximum height in pixels for resized images. Images taller than this will be resized. Default: 1080.', 'maxHeight: 768'],
['quality', 'Number', 'JPEG compression quality (0.1 to 1.0). Higher values mean better quality but larger file sizes. Default: 0.8.', 'quality: 0.9'],
Expand All @@ -252,6 +253,7 @@ When enabled, images that exceed the specified `maxWidth` or `maxHeight` dimensi
fileConfig:
clientImageResize:
enabled: true
minFileSizeKB: 1024
maxWidth: 1920
maxHeight: 1080
quality: 0.8
Expand All @@ -262,6 +264,7 @@ fileConfig:

- Only applies to image files (JPEG, PNG, WebP, etc.)
- Resizing occurs automatically when images exceed the specified dimensions
- Files smaller than `minFileSizeKB` are skipped to avoid unnecessary processing
- Original aspect ratio is preserved during resizing
- The feature works with all supported image upload endpoints
- Quality setting only applies to JPEG and WebP formats
Expand Down