-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
2.8.7, 2.8.8, 2.8.9, 2.9.1, 2.9.2, 2.9.3, 3.1.8, 4.4.8
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_31_STABLE, MOODLE_404_STABLE
A JPEG file of about 4MB can generate up to 300MB of memory. When it happens, an "Allowed memory size of 134217728 bytes exhausted" error occurs, and for the user, a broken icon appears. On Firefox it's a non clickable white square, which is an issue since the user can't even get the real image.
Moodle should display a default image when the thumbnail generation fails.
A solution would be to raise the memory at PHP level, but it can be dangerous for performances. For our Moodle we've decided to add a few "raise_memory_limit" at the right places (lib/gdlib.php, lib/filestorage/file_storage.php ).
- duplicates
-
MDLSITE-5301 Error creating thumbnail: Unable to save thumbnail to destination
-
- Closed
-
- has a non-specific relationship to
-
MDL-80603 Implement course summary image file autoresize.
-
- Open
-