On this page:
Upload, position & resize
How to upload and place images in topics, then resize them and change their layout on the page. Also where to find image editor applications.
As Alice (in Wonderland) wisely observed "What is the use of a book, without pictures or conversations?". We recommend you use images wherever you can in Moodle (we will add the conversations another time…) to make your online material more visually engaging.
Turn editing on and edit the type of page element (Topic summary, label, page etc) where you will get a text editor
Decide where you want to place your image (roughly) and click on the Insert/edit image icon in the toolbar
- The Insert/edit Image window appears
- Click on Find or upload an image...
- The File picker appears.
- Use this to select a file, the image should now be displayed.
- Add an Image description (this is to make it accessible to visually impaired users, so making the description meaningful)
- To resize your image click on it and eight little boxes (handles) appear round the edge. Use the corner handles to resize the image, not the side ones which will only distort your image.
- Click Insert to add your image
- There are some other options on the Insert/edit Image window so select your image and click on the picture icon again.
- The Appearance tab lets you change alignment and add some white space around the image - Vertical and Horizontal, described in pixels – try 5 or 10
- The Advanced tab allows images that change when you 'mouse over', something to try later!
- Click on Update then Save Changes in the Editor
Include a banner image which actually fits the page
Banners help to make pages distinctive, orientate students in Moodle spaces which can look fairly samey, and set scenes or moods. Below are instructions for a horizontal image across the top of a section which reaches to the edge of the section, resizes with the window, and doesn't have an ugly scrollbar:
First find an image. Solvonauts, Flickr Creative Commons search and Wikimedia Commons are good places to look.
The image you find may need to be cropped - its dimensions should be 1600px (if it's much narrower it may not reach to the edges of some screens) and its height is up to you (but the lower the better in terms of page load times). In terms of file size aim for under 100Kb, ideally around 40Kb - every extra kilobyte contributes to page load times and this can make a difference on slow connections.
- Insert the image according to steps 1-11 on the instructions above (or if you already have an image in place, then put the section or label containing the image into edit mode, then to edit the actual image, select that image and in the editor's toolbar click on the Image button; its settings display.
- Click on the Appearance tab.
- Into the Style field, type: max-width:100%; height:auto; - then save the settings. N.b. the semi colons are important. This short string of code you've just entered will resize the image when the window is resized while keeping its aspect ratio (rather than squeezing it).