-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Uploading files from Apple Photos fails #8317
Comments
might be related: lovell/sharp#4077 |
confirmed, using https://www.npmjs.com/package/jpeg-autorotate before uploading fixes the issue. still would be great to have this patched in payload itself |
IMG_9160.jpeg.zip |
Hey @max-degterev - thank you for the test image! I've opened a PR that should fix your issue here - can you confirm though that this is happening on your end because you have some defined |
Hey yeah basically crop is applied without respecting the orientation, I quickly checked your PR and it seems to do the right thing, if orientation > 4 need to swap width and height. See the same in sharp doc: https://sharp.pixelplumbing.com/api-input (Look for |
This issue has been automatically locked. |
🚀 This is included in version v2.30.2 |
Link to reproduction
No response
Describe the Bug
Currently trying to upload a photo picked from Apple Photo Gallery fails with an error:
would it be possible to pass
failOnError: false
to sharp? I see that you construct the options object but there is no way to pass props down to it.To Reproduce
Try uploading a photo made with an iPhone
Payload Version
[email protected]
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: