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

Exif data orientation of uploaded images seem to be ignored

XMLWordPrintable

    • MOODLE_23_STABLE, MOODLE_28_STABLE, MOODLE_310_STABLE, MOODLE_31_STABLE, MOODLE_39_STABLE
    • MDL-45910-MOODLE_401_STABLE
    • MDL-45910-MOODLE_403_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
    • 3
    • Team Alpha - Sprint 1 I1-2023

      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).

        1. AfterFixes.png
          AfterFixes.png
          37 kB
        2. AfterFixes2.png
          AfterFixes2.png
          19 kB
        3. BeforeFixes.png
          BeforeFixes.png
          19 kB
        4. BeforeFixes2.png
          BeforeFixes2.png
          14 kB
        5. drag and drop image to course page.png
          drag and drop image to course page.png
          315 kB
        6. Example Correct rotation.jpeg
          Example Correct rotation.jpeg
          100 kB
        7. Example incorrect rotation.jpeg
          Example incorrect rotation.jpeg
          100 kB
        8. file picker.png
          file picker.png
          22 kB
        9. F iphone image-not working.jpeg
          F iphone image-not working.jpeg
          4.67 MB
        10. image-2024-02-27-14-22-40-573.png
          image-2024-02-27-14-22-40-573.png
          33 kB
        11. image-2024-02-27-14-23-37-709.png
          image-2024-02-27-14-23-37-709.png
          91 kB
        12. image-2024-02-27-14-24-09-691.png
          image-2024-02-27-14-24-09-691.png
          105 kB
        13. image-2024-02-27-14-24-38-007.png
          image-2024-02-27-14-24-38-007.png
          104 kB
        14. image-2024-02-27-14-25-08-694.png
          image-2024-02-27-14-25-08-694.png
          106 kB
        15. poc_gd_keep_orientation.patch
          3 kB
        16. rotate_image.png
          rotate_image.png
          156 kB
        17. screenshot-fixtures-1.png
          screenshot-fixtures-1.png
          132 kB
        18. Screenshot from 2023-12-04 14-11-36.png
          Screenshot from 2023-12-04 14-11-36.png
          190 kB
        19. Screenshot from 2023-12-04 14-11-36-1.png
          Screenshot from 2023-12-04 14-11-36-1.png
          190 kB
        20. Screenshot from 2023-12-04 14-13-04.png
          Screenshot from 2023-12-04 14-13-04.png
          1.09 MB
        21. Screenshot from 2023-12-04 14-13-04-1.png
          Screenshot from 2023-12-04 14-13-04-1.png
          1.09 MB
        22. sideways profile image.png
          sideways profile image.png
          81 kB
        23. unit-test.png
          unit-test.png
          161 kB

            Created:
            Updated:

              Estimated:
              Original Estimate - 0 minutes
              0m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 day, 2 hours, 32 minutes
              1d 2h 32m

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.