Image hosting on shared space

Jump to solution
hedbergskan
Community Explorer

Hi all,

we would like to add custom images to our theme, that is,  an image that should show up on the grade book page. Is there any way to upload images to a canvas shared space/folder so that we could create that link or do we need to host the file externally. 

All the best,

Maria 

1 Solution
samuel_malcolm
Community Participant

Hi Maria,

 If you are looking to avoid hosting the image externally I have 2 ideas for this:

1. There is a way to do this with only CSS which you could apply through the theme editor assuming the image is small, you could store the image as base64 binary code in the CSS. There are performance drawbacks to doing this though but if the image is small (like an icon), it would work.
See this resource: Base64 Image Encoder 
This option might also not be ideal for accessibility, so only do that if the image is purely decorative.


2. You could also create a dummy course and set the privacy level to institution and upload it to the course files, then anyone logged into your instance of canvas would have the correct permissions to see it. You may need JS to inject the image where you need it (possibly need this in either case) but the image would show and would effectively be hosted by Canvas.

Hope this helps, let me know if you want more information!

View solution in original post

0 Likes