Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-45910

Exif data orientation of uploaded images seem to be ignored

    XMLWordPrintable

Details

    • MOODLE_23_STABLE, MOODLE_28_STABLE, MOODLE_310_STABLE, MOODLE_31_STABLE, MOODLE_39_STABLE
    • MDL-45910-MOODLE_39_STABLE
    • MDL-45910-MOODLE_311_STABLE
    • MDL-45910-image_cropping_issue_patch
    • Hide
      1. Create two users - a student and teacher
      2. Create a course
      3. Enroll both users - one as a student and one as a teacher
      4. Add a simple file submission assignment to the course
      5. Log in as the student
      6. As the student, submit a few images with varying EXIF data in the created assignment (you may want to use the images that are part of this patch in lib/filestorage/tests/fixtures/*EXIF/)
      7. Log in as the teacher
      8. As the teacher, grade the student's submission
      9. Confirm that all the images are correctly oriented on the PDF pages
      10. Confirm that none of the images are cut off by the page borders
      Show
      Create two users - a student and teacher Create a course Enroll both users - one as a student and one as a teacher Add a simple file submission assignment to the course Log in as the student As the student, submit a few images with varying EXIF data in the created assignment (you may want to use the images that are part of this patch in lib/filestorage/tests/fixtures/*EXIF/) Log in as the teacher As the teacher, grade the student's submission Confirm that all the images are correctly oriented on the PDF pages Confirm that none of the images are cut off by the page borders

    Description

      I have uploaded student photos individually and using the bulk upload method and they always come up with the head of the photo 90 degrees to the left. these are .jpgs in version 2.3

      [UPDATE] More test instructions:
      a) In Windows 10, double click on an image. It should open the preview software. Select rotate. Windows 10 will automatically modify and save the "Orientation" exif data (Orientation: rotate 90). The image will be displayed rotated in Windows 10 now.
      b) Try to upload the image in a Moodle file resource. Once uploaded from the file picker, the image is displayed with the original orientation in the file manager (incorrect behavior). If you uploaded the same image in Facebook or Google Photo it would be displayed with the modified orientation (the expected behavior).

      Attachments

        1. Example Correct rotation.jpeg
          Example Correct rotation.jpeg
          100 kB
        2. Example incorrect rotation.jpeg
          Example incorrect rotation.jpeg
          100 kB
        3. F iphone image-not working.jpeg
          F iphone image-not working.jpeg
          4.67 MB
        4. rotate_image.png
          rotate_image.png
          156 kB
        5. unit-test.png
          unit-test.png
          161 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              turboturbo Rick Reynolds
              Martin Gauk Martin Gauk
              Adrian Greeve Adrian Greeve
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              40 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours, 10 minutes
                  7h 10m