Skip to content
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

Image upload metadata (orientation or width/height) is wrong when uploading without media optimization #4049

Open
toger5 opened this issue Dec 16, 2024 · 0 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@toger5
Copy link

toger5 commented Dec 16, 2024

  • I upload an image from EX android.
  • The image is rendered weired on EX and EW (The lowe od the two images is the one WITHOUT media optimization)

image
image

In the image metadata one can see that (even though its obviously a portrait image) the w,h metadata is swapped for the actual image but not for the thumbnail.

{
  "content": {
    "body": "photo.jpg",
    "file": {
     ...
      "url": "",
      "v": "v2"
    },
    "info": {
      "h": 2252,
      "mimetype": "image/jpeg",
      "size": 2175322,
      "thumbnail_file": {
...
        "iv": "8rSWx9OF7jcAAAAAAAAAAA",
    ...
          "kty": "oct"
        },
        "url": "mxc://matrix.org",
        "v": "v2"
      },
      "thumbnail_info": {
        "h": 666,
        "mimetype": "image/jpeg",
        "size": 24859,
        "w": 375
      },
      "w": 4000,
      "xyz.amorgan.blurhash": "KFIqZH}%%205wGxuIuM|bI"
    },
    "msgtype": "m.image"
  },
...
  "type": "m.room.message",
  "unsigned": {}
}

Thumbnail: "h": 666,"w": 375
File: "h": 2252, "w": 4000,
It should be ~9:16

@toger5 toger5 added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

1 participant