Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4, 2.8.3, 2.9.3, 3.0
-
MOODLE_24_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-37308-master -
-
Team '; drop tables Sprint 7, 3.1 Stable Sprint 1
-
Small
Description
The function convert_image() in /lib/filestorage/file_storage.php does not support PNG Image transparency and yet the function generate_image_thumbnail() in /lib/gdlib.php does. Could the two be 'refactored' to be consistent such that the former would use the latter if the GD2 library was installed?
To put in context, this relates to some Grid course format work - https://moodle.org/mod/forum/discuss.php?d=218272#p952418
I can work around this I think through employment of generate_image_thumbnail() and then save with the functions in /lib/filestorage/file_storage.php.