You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
When uploading images to Payload CMS with S3 storage, Sharp automatically processes and compresses the images, even for the "original" version. This results in:
Reduced file size
Potential format conversion
Loss of original image quality
Modified metadata
Desired Behavior
Need a way to store the original image file exactly as uploaded, maintaining:
Original file size
Original file format/type
Original quality
Original metadata
While still allowing additional image sizes to be generated
Use Case
This is crucial for:
Photography websites requiring exact original files
Digital asset management systems
Professional image archives
Situations where image fidelity is critical
Current Workarounds Attempted
Setting formatOptions: null in imageSizes
Using withoutReduction: true
Configuring Sharp options with maximum quality
Custom upload handlers
None of these completely solve the issue as Sharp still processes the image at the initial upload stage.
Proposed Solution
Would it be possible to:
Add a flag to bypass Sharp processing for original files?
Or provide a configuration option to store raw files?
Or implement a direct upload path for originals?
Environment
Payload CMS version: [version]
Storage: @payloadcms/storage-s3
Database: MongoDB
Node.js version: [version]
Additional Context
This feature would be particularly valuable for professional photography and digital asset management use cases where maintaining the exact original file is crucial.
Would love to hear thoughts on the best approach to implement this while maintaining Payload's excellent image handling capabilities for derived sizes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
When uploading images to Payload CMS with S3 storage, Sharp automatically processes and compresses the images, even for the "original" version. This results in:
Desired Behavior
Need a way to store the original image file exactly as uploaded, maintaining:
Use Case
This is crucial for:
Current Workarounds Attempted
formatOptions: null
in imageSizeswithoutReduction: true
None of these completely solve the issue as Sharp still processes the image at the initial upload stage.
Proposed Solution
Would it be possible to:
Environment
Additional Context
This feature would be particularly valuable for professional photography and digital asset management use cases where maintaining the exact original file is crucial.
Would love to hear thoughts on the best approach to implement this while maintaining Payload's excellent image handling capabilities for derived sizes.
Beta Was this translation helpful? Give feedback.
All reactions