-
Improvement
-
Resolution: Fixed
-
Major
-
3.9.17, 3.11.3, 3.11.10, 4.0.4, 4.3.4, 4.4, 4.5
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
MDL-75850-main-fix -
-
6
-
Team Hedgehog 2024 Review 1, Team Hedgehog 2024 Sprint 2.1, Team Hedgehog 2024 Sprint 2.2, Team Hedgehog 2024 Sprint 2.3, Team Hedgehog 2024 Review 2, Team Hedgehog 2024 Sprint 3.1, Team Hedgehog 2024 Sprint 3.2
eporter
I9NIT3D
Description
It should be possible to strip EXIF data, such as geolocation data from images uploaded to Moodle. We want to avoid stripping data such as orientation which could affect the correct displaying of the image, avoid image quality degradation if possible and also maximise the file types supported.
Steps to Reproduce
- Use a browser to navigate to: https://sectesting.moodle.com/course/edit.php?id=8
- Upload the attached pic.jpg image.
- You can download the image after saving and then upload it to https://exifdata.com/
- You can see the Geo Coordinates
Additional Information from michaelh
This appears to affect images in most places (eg course image, images in course description, user profile description, attached or inline in forum posts etc). The only place I tested which was not affected was user profile images, which is actually explained on MDL-70057 (and I think is probably coincidence due to the way profile images are set up). This has been determined to not be an effective method for EXIF removal as it requiresd resaving which causes quality degredation in soe formats (eg JPEG).
Analysis by meirza.arson@moodle.com found the best approach for this was to utilise a third party library which gives the required functionality on a range of formats, allows us to retain important EXIF data such as orientation, and does not degrade image quality.