-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.12
-
MOODLE_39_STABLE
-
MOODLE_402_STABLE
-
MDL-73708-master -
The mobile app is not currently able to generate a matching image with web, this could be easily solved with this improvement.
The images currently generated for web are base64 encoded and directly embedded in the HTML, while this is acceptable for a web app it creates some challenges for external system such as the Moodle app because the images have to be retrieved as a file from the server (is not feasible to just return base64 via Web Services JSON response payload)
So, the proposed solution does the following:
- It will use the pluginfile.php script to dynamically generate the geo-pattern course image when requested
- It will return a new field in several course related WebSevices called courseimage with a URL for downloading the course image, pointing to the geo-pattern generaiton endpoint or a custom file if used
- For the previous to happen we'd need a few minor API changes
- blocks
-
MOBILE-3973 Use geopattern on non exiting course images
- Closed
-
MOBILE-3972 Course without image only match colour (browser has pattern too)
- Closed
- caused a regression
-
MDL-78439 Geo-pattern images are not available via pluginfile.php for courses that are visible but the user is not enrolled
- Reopened