Skip to content

Format webp rotate image but not for png or jpg #381

Open
@bjarnef

Description

@bjarnef

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

3.1.6

Other ImageSharp packages and versions

ImageSharp.Web 3.1.3

Environment (Operating system, version and so on)

Windows 10

.NET Framework version

8.0.113

Description

We noticed in Umbraco 13.7.0 an image uploaded shown correct at thumbnail e.g. ?rmode=max&width=500

Viewing the EXIF meta data via e.g. https://jimpl.com/ I see the following:
Orientation: Rotate 90 CW

Not sure why the rotation is different depending on format though.

The image seems also to be rotated correct using these querystrings:

?quality=80&width=500
?format=jpg&quality=80&width=500
?format=png&quality=80&width=500

Image

but using WebP the image is rotated:

?format=webp&quality=80&width=500

Image

Steps to Reproduce

Use the example image below and test with ?format=webp in querystring.

Images

I have attached the original image used in the example: test.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions