Misskey: Image upload from iOS 13 ignores image rotation metadata

Created on 17 Feb 2020  ·  4Comments  ·  Source: syuilo/misskey

💡 Summary

When uploading an image to misskey web (v11.37.1), image rotation is ignored. iOS sets JPEG rotation metadata instead of rotating the pixels when taking photos in different orientations, and misskey appears to ignore & strip this metadata.

🙂 Expected Behavior

Image is uploaded and displays in the orientation shown in iOS Photos app and camera.

☹️ Actual Behavior

The image uploads and goes to a different orientation (the actual pixel orientation in JPEG file).

📝 Steps to Reproduce

  1. Open new note in misskey on iOS
  2. Tap 'upload'/image button
  3. Select images taken in different phone orientations
  4. When images upload, the previews are rotated wrong. They also display wrong on the timeline when viewed from any devices.

📌 Environment

Web client, iOS.

⚠️bug?

All 4 comments

Misskey rotates images to respect orientation.
I checked the image with some orientation, but there was no problem.

@cortices
Do you have a sample image where the problem occurs?

Re tested in the same site and same exact photos, and problem disappeared! very strange. Closing as I can't reproduce anymore.

I guessed that the feature of image compression removes rotation metadata. Could you try again?

@acid-chicken Just tested and you're right. The iOS image compression feature causes the rotation to be incorrect in any setting other than "Full Size" (original file). see the attached image. Left was uploaded with compression set to "Medium", right was uploaded with compression set to "Full Size". Right is the correct orientation.
Does this mean it's an iOS bug?
image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ibrokemypie picture ibrokemypie  ·  3Comments

ne-moni picture ne-moni  ·  3Comments

AyaMorisawa picture AyaMorisawa  ·  3Comments

no-boot-device picture no-boot-device  ·  3Comments

tamaina picture tamaina  ·  3Comments