Skip to main content
UNSW Sydney Logo
Teaching
Mobile search
mobile nav menu button
  • About
  • Teaching
    • New to teaching
    • Educational design
    • Assessment and feedback
    • Evaluating education
    • More...
  • Educational Technology
    • Support
    • Training
    • TELT Administrator
  • Events & News
    • Upcoming events
    • Recent news
    • Event recordings & resources
    • Subscribe to education news
  • Awards
    • Awards
    • Fellowships
    • Gathering evidence of your teaching practice
  • Professional Development
    • Beginning to Teach (BTT)
    • Teaching Accelerator Program
    • Foundations of L&T (FULT)
    • Course Design Institute (CDI)
    • Self-paced learning
    • Academic Mentoring
    • More...
  • Contact & Support
  • About
  • Teaching
      1. New to teaching
      2. Educational design
      3. Assessment and feedback
      4. Evaluating education
      5. More...
  • Educational Technology
      1. Support
      2. Training
      3. TELT Administrator
  • Events & News
      1. Upcoming events
      2. Recent news
      3. Event recordings & resources
      4. Subscribe to education news
  • Awards
      1. Awards
      2. Fellowships
      3. Gathering evidence of your teaching practice
  • Professional Development
      1. Beginning to Teach (BTT)
      2. Teaching Accelerator Program
      3. Foundations of L&T (FULT)
      4. Course Design Institute (CDI)
      5. Self-paced learning
      6. Academic Mentoring
      7. More...
  • Contact & Support

Breadcrumb

  1. Teaching
  2. Technologies
  3. Educational Technology
  4. Moodle
  5. Build Courses in Moodle
  6. Build Your Moodle Course
  7. Adding Course Content

Embed an Image in Moodle

Overview

You can embed an image in almost all Moodle locations where the text editing box is available for entering content. This page tells you how to embed an image within a resource or activity.

You cannot add images or other media to a Questionnaire activity.

If you are planning to use an image multiple times throughout a course, upload it to legacy course files.

When to use

You can embed an image wherever the text editing box is available for entering content.

We do not advise using tables to lock in image positioning in relation to text, as this disadvantages users who access course material using screen readers.

Benefits

Images facilitate closer engagement with your course material for students who are visually oriented in their learning. Images can clarify material presented in text, and provide some breathing space in a text-heavy content page.

Guide

Getting started

Optimise your images for uploading to Moodle

A small image loads faster and consumes fewer resources than a large one. Resizing an image is quite straightforward, and doesn't require you to buy specialised software.

  • On a PC, you can use Paint to crop and resize images. See the following page for instructions: http://windows.microsoft.com/en-au/windows7/resize-a-picture-using-paint
  • On a Macintosh, use Preview. See the following page for instructions: http://support.apple.com/kb/PH5936

Tips

  • If you want to add an image to each topic or week of your course, keep the size of these images consistent: 150 x 150 pixels is a good size.
  • When inserting an image, always complete the Image description field in the Insert/edit image window, to maximise accessibility.
    Image description
     

Step by step instructions

Use these instructions when you want to include photographs, diagrams or other graphic material in your course via the WYSIWYG editor which is available in most activities and resources.

Text Editor

Acceptable image file types are JPG, GIF and PNG. Upload images that have been optimised for web use wherever possible.

Graphics can illustrate the point you're making, sometimes more economically than can text. They can also provide a visual break on a text-heavy lesson or book page.

Don't go overboard with graphics in your course, though. Some students with poor Internet connections may find it tedious for graphics-heavy pages to load.

Step by step instructions

  • Embed an image
  • Scale an image (banner example)
  • Determine image position
  • Copy image between text editors

Embed an image

Once the file you want to embed has been uloaded to a suitable location e.g. theBox or Dropbox, it can be embeded in an activity or resource as follows:

  1. Within the text editing box, click the Insert/edit image icon Insert image icon

Click on images

  1. In the Insert/edit image window, click Find or upload an image.

Click on "Find or upload an image..."

  1. In the File picker, click theBox (or other repository location where you store your images - on mobile devices you can also select the camera if available).

File picker theBox

  1. If looking for an image in theBox type a search term in the search field and then press the enter/return key on your keyboard.

theBox search

  1. Click on the file that you want to embed.

Click to embed

  1. In the selection window:
    • Select Create an alias/shortcut so that all instances where the image is used will be updated if you replace the image.
    • If necessary, change the file’s Save as name.
    • If necessary, change the Author and Licence details.
    • Click Select this file.

Create alias/shortcut to the files

  1. In the Insert/edit image window, the Image URL displays and the image displays in the Preview box.
    • Enter an Image description to display to users who employ screen readers.
    • Click Insert. The image displays in the text editor. Once you have saved your changes to this page, the image will display with any other content entered in the text editor, when a user clicks the link for the item.

Add description

Scale image (banner example)

To ensure that an image adjusts itself to the right scale no matter what browser it is viewed in, you may need to make adjustments to the HTML code. For example, if you are inserting a graphic that will display as a course banner, once it is uploaded as above:

  1. In the text editor, click the Edit HTML Source button in the third row of the text editor function buttons. (If the function buttons don't display, click Show editing tools at the top of the text editor.
    Edit html source
  2. In the HTML Source Editor, highlight the code specifying the height of the image and press "Delete" on your keyboard.
    Edit height value
  3. Change the width specification to 100%.
  4. Click Update.
    Update width specification and update
  5. On the Updating page, save your changes.
    Save and return to course

 

You can scale the image as you embed it by completing the Appearance tab of the Insert/edit image window as shown below:

Dimensions

Determine image position

Moodle's text editor auto-generates HTML code to place images to the left or right of the text. To position pictures in relation to text:

  1. Once an image is placed in the text editor, click the image to select it.
    Select image
  2. Click the Insert/edit image icon Insert image icon.
  3. In the Insert/edit image window, select the Appearance tab.
    Select appearance tab
  4. On the Appearance page, at Alignment, select whether you want the image placed to the Left or Right of the text.
  5. In Horizontal space, type "10".
  6. Click out of the field. In the Style field, the code "margin-right: 10px; margin-left: 10px;" will display. Adjust this code to suit the alignment—for example, if your image is aligned Left, remove the code “ margin-left: 10px;”, as you only need space on the right of the image, between it and the text. Click out of the field to see the effect of your change on the image-and-text thumbnail.
  7. Click Update.

Align left, remove margin-left html code, and update.

Copy images between text editors

If you want the same image to display in two places in your Moodle course, you cannot reproduce it by copying the image's URL from the HTML source code in one text editor into a second text editor. That URL is for a temporary file that exists for a single instance of the text editor. The link will break if you cut and paste it into a second text editor.

You can create a second copy by inserting the image from scratch in the second location, or by duplicating the resource or activity in which the editor box occurs. (When a course/resource/activity is imported, or backed up and restored into a second course, all the images are duplicated, and given their own unique link to the relevant legacy course file.)

Additional information

Further assistance

If you experience technical or other issues, consult the Where to get help page.

  • Educational Technology
    • Moodle
      • Login
      • Dashboard
      • Build Courses in Moodle
        • Orientation to Moodle
        • Request Course through myUNSW
        • Build Your Moodle Course
          • Course Design
          • Course Home Page
          • Adding Course Content
            • Activities
            • Resources
            • Add a Book
            • Upload a File
            • Using Blocks
            • Attendance
            • Create a Folder
            • Atto Text Editor
            • Text Editor
            • Blog
            • Copy Text from Word
            • IMS content package
            • Chat
            • Tables
            • Choice
            • Create a Lightbox Gallery
            • Legacy Course Files
            • Create a Label
            • Database
            • Images
            • Create a Web Page
            • Dialogue
            • Video
            • Add a URL
            • Feedback
            • Forum
            • Hide Resource or Activity
            • Glossary
            • Restrict access
            • Activity Completion
            • Group
            • Group Selection
            • Lesson
            • SCORM Package
            • Create a Questionnaire
            • Use the Moodle Calendar
            • Add test students
            • Survey activities
            • Course menu block
            • Create Wiki Activity
            • Scheduler activity
            • Create media gallery
            • Dropbox files
            • Course overview
            • Create a Checklist Activity
            • StudentQuiz
            • VoiceThread Instruction
          • Assessment Tools
          • Blackboard Collaborate Ultra
          • Personalized Learning Designer
          • Team Builder
        • Bring Content into your Teaching Instance
        • Facilitate and Deliver Course
        • Uploading grades to SIMS using Astra
      • Course Administration
      • Moodle Releases
      • Moodle Upgrade Project
      • Feature Requests
      • Contacts
      • Index of all support pages
    • Lecture Recording+
    • Turnitin
    • theBox
    • Other eLearning Tools
    • Feature Requests
    • Book a Consultation
    • Digital Media Support & Equipment
    • Immersive Technologies
    • TELT Service Status
    • Known System Issues
    • System Maintenance Windows

Events & news

CEP Lightning Workshops T1 2023
LET'S Meet T1 2023
More
Back to top
  • Print
  • Share
    • Facebook
    • Twitter
    • Google
    • Email
  • Home
  • About
  • Educational Technology
  • Events & news
  • Awards
  • Contacts

Authorised by Pro Vice-Chancellor Education
UNSW CRICOS Provider Code: 00098G, TEQSA Provider ID: PRV12055, ABN: 57 195 873 179
Teaching at UNSW, Sydney NSW 2052, Australia Telephone 9385 5989

Footer menu

  • Privacy Policy
  • Copyright & Disclaimer
  • Accessibility
  • Report an incident
  • Complaints
  • Site Map
  • Site Feedback
Page last updated: Monday 23 December 2019