Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Moodle allows you to upload and display images from a variety of sources via the image icon in the text editor. Assignments can include images for extra clarification.

Moodle accepts .jpg, .png and .gif image formats.

Topics Covered In This Article

Anchor
uploading-and-displaying
uploading-and-displaying
Uploading and displaying an image

Note: It is a good idea to resize your image before uploading, rather than altering its dimensions online. Jump to the section on image resizing to quickly resize an image.

  • With editing turned on, access the text editor where you want to display your image (e.g., in a course summary, label, page etc.)
  • Click the Image icon in the text editor.

Image button in text editor toolbar

  • If you have an image file on your computer that you would like to upload, click the Browse repositories button. (If you have an URL for a external image, paste it into the Enter URL field)

  • After clicking the Browse repositories button, the File Picker window opens. In most cases you will want to click on Upload a file on the left and then click Choose File to upload a file from your computer, and then click Upload this file. Ensure that you have permission to use the image.
     
  • Once you've clicked Upload this file, you'll be taken to the Image properties window. Enter a description for this image for someone who cannot see it. If the image is meant as decoration only, then you may leave the description blank and tick Description not necessary. If needed, you may override the default size and alignment. When you're done, click Save image.
     
Anchorexternal-imagesexternal-imagesDisplaying an image located online outside of Moodle
  • If you have images available elsewhere online, you can display them too without the need to upload to Moodle.

Note: If the image is taken offline, it will be replaced by a red X on your course page.

  • Follow the instructions for Uploading and Displaying an image as above.
  • After clicking on Find or Upload an image, paste the URL of the image you have online into the Image URL box.
  • Add a description of the image and click Insert.
  • Ensure that you cite the image source directly below the image.
  • Save changes.
Anchorembedding-externalembedding-externalEmbedding image from an image sharing site that uses embed code (e.g., Flickr, Picasa etc.)
  • Go to your chosen image sharing site and find the embed code for the image you wish to display. Copy this code.
  • With editing turned on, click into the HTML editor where you wish to embed the image.
  • Ensure that the editor menu is expanded. You can toggle the expanded menu by clicking the button in the top left:

Moodle text editor button to expand to full menuImage Removed

  • Click the HTML code icon as in the following screenshot:

Moodle text editor window. Button to open HTML editor.Image Removed

  • Paste the embed code your copied into the HTML box

HTML source editor window showing HTML embed code that has been pasted into it.Image Removed

  • Anywhere that Moodle's text editor is available, it is possible to embed an image.
  • Use this method for images you have uploaded to an image sharing site or images that allow embedding.
Image Appearance
  • After clicking the image icon in the text editor, the appearance tab will be available to help you better display your image.
  • Choose from the Alignment drop-down menu how you want the image to be set against any text. The block with the tree and text show how each option will display.
  • Resize the image in the dimensions boxes if desired.
  • If desired, add a number (in pixels) for a vertical or horizontal space or border around the image.
  • Unless they're small, images should usually be set to Class img-responsive. This will allow the image to shrink if the image is viewed on a smaller-screened device such as a phone.
  • Image attribution, when needed, should be visible along with the image. Image licenses, such as Creative Commons, have specific requirements for how the image attribution should be displayed.
Image appearance options windowImage Removed

Anchor
Resizing-An-Image
Resizing-An-Image
Resizing An Image

If an image is much larger than it needs to be for the course site it is best to resize the image so that it does not slow down loading of the course site. This will provide users with a better experience. There are many programs on both Windows and Mac to achieve this. Windows comes with a program called Paint and Mac OS comes with a program called Preview. If you're not sure what to use, here are some simple instructors to resize an image using a free web-based tool:

  • Navigate to befunky.com/create
  • Click upload at the top. Find your image and open it.
  • Click resize on the left and resize your image. If you set the width and click tab, it will automatically set the height. If in doubt as to what width to set, here are some suggestions:
    • Small image 200 px
    • Medium image 400 px
    • Large image 800 px
  • Once your image is resized, click the check mark button to save the changes.
  • Click the Save button at the top to save your image. Screenshots are usually best saved in PNG format. If in doubt, use PNG.

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel = "multimedia"