-
Improvement
-
Resolution: Fixed
-
Minor
-
2.9
-
MOODLE_29_STABLE
-
MOODLE_29_STABLE
-
MDL-49598-master -
- Run unit tests for test_get_file_preview
- Upload some images to my private files and ensure the thumbnail is generated correctly
MDL-32471 introduced a function to get a file preview. As part of that, it gets the image dimensions using getimagesize(). In order to do so, it writes the image data (a string) to a file, and then calls getimagesize() against the file.
Since it was introduced, we have bumped the requirements for Moodle, and now require PHP 5.4 which introduced a getimagesizefromstring() function. This would negate the need to store the file on disk.
- has a non-specific relationship to
-
MDL-40034 Epic: File API improvements to handle clustering environments
- Closed