SJRK-286: Some images being uploaded with incorrect orientation

Metadata

Source
SJRK-286
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Gregor Moss
Created
2019-09-12T19:38:29.076-0400
Updated
2020-03-15T21:44:33.098-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Storytelling Tool UI

Description

Some images are being uploaded with incorrect orientation, even though such metadata likely exists in the image file.

To reproduce:

  • find a JPEG image with EXIF data containing an orientation value other than 1
  • if you're running from the pull request branch (https://github.com/fluid-project/sjrk-story-telling/pull/50), you can refer to the test images in the "tests\testData" directory
  • add a new image block and upload that image

Expected: the image will be the correct orientation that matches what is seen in the Finder upload dialog or on the mobile device (see attached screenshot "working")

Actual: the image is rotated 90 or 180 degrees and looks incorrect (see attached screenshot "not working")

The image will have the incorrect orientation both in the story editor preview as well as in the published story

Environments

MacOS (version?)
both in Safari and Chrome

Attachments

Comments