by Davo Smith.
I've posted an update to this patch now https://tracker.moodle.org/browse/MDL-34137
When an image is dragged and dropped onto a course, the user can select to 'Add image to course page' (i.e. create a label with the image in it), rather than creating a file resource.
The main change I've made is that images are automatically scaled to the maximum width / height specified in the global settings for mod_label (default 400px by 400px maximum). Currently the resized image is linked to the full-size original, but that might change, depending on whether anyone else thinks that is a good idea.
If you like this change, please vote on the issue (and comment, if you have something to add to the discussion).