Skip to content

Sharp bug: Image is being rotated during resize and crop #3080

@imCorfitz

Description

@imCorfitz

Link to reproduction

Use any uploads collection which has an array of imageSizes.

To Reproduce

Using this image: https://www.yummp.net/_clients/dev/001-20220709_143105.jpg and uploading to a collection in payload, will result in the image being rotated by sharp during processing.

Describe the Bug

Some images are oriented correctly on client, but not interpreted correctly by Sharp on upload. This causes some images to be rotated when processed by Sharp. Please see following issues and solutions: lovell/sharp#688 (comment) lovell/sharp#1203

Screenshot 2023-07-25 at 21 54 20

Conversation in Discord: https://discord.com/channels/967097582721572934/1133409145324838952

Payload Version

1.11.5

Edit: Tried the very latest version of payload.

Metadata

Metadata

Assignees

Labels

status: needs-triagePossible bug which hasn't been reproduced yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions