Female photographer-landscape.jpg


Introduction

Photographs, charts, and diagrams can often be used effectively in online learning materials to communicate complex and/or multiple ideas, and to improve visual aesthetics. Online course developers therefore need to know how to:

  • upload images legally, and
  • manipulate the display (position and size) of images on published websites.

Importantly, course developers must respect the copyright and digital conventions for attributing images under the provisions of different open licences.

preknowledge

Preknowledge

  1. Review the TASL(Title, Author, Source, and Licence) requirements for attributing Creative Commons images
  2. Visit the WikiEducator metadata page for the image used on this course page to see how the TASL requirements have been implemented. (From this page, you can click on the image above to go directly to the image attributions.)

Introducing the wiki image syntax

In brief, the format of the wiki syntax for displaying an image is:

[[File:file name|type|location|size|caption]]

Notes:

  1. type refers to whether you want to display your image as a thumbnail or a framed image; we recommend that you do not use framed or thumbnail images because they do not automatically re-size on mobile devices
  2. location allows you to specify where on the page the image should appear, for example: left, right, or centre
  3. size allows you to specify the size (in pixels) at which the picture is displayed on the page
  4. caption is where you can choose to add a description for your image (Note: this only works for framed or thumbnail images)
Tip: This may appear confusing at first, but don’t worry! Experiment with the options below in your Sandbox on your User page. You will soon discover how this works. You don’t have to memorise this syntax, because these tutorials are permanently available as reference materials!

The following table outlines the optional attributes and their effects on images:

Parameter Optional Image Attributes
Type

‘thumb’ / ‘thumbnail’ or ‘framed’
Used for type option; results in an image displayed with specific formatting

Location

‘right’, ‘left’, ‘centre’ or ‘none’; determines the placement of the image on the page (Note: the default placement is on the left)

Size

{width}px or {width}x{height}px will scale the image to the given width and height, while keeping its aspect ratio

Caption Any element that is not identified as any one of the above is assumed to be caption text

Recommended image syntax for publishing to course sites

Today, the majority of learners access course sites using mobile devices. Therefore, we recommend a ‘mobile first’ approach, taking requirements for responsive image display on small screens in portrait view into account. Ideally, we recommend using image markup that will re-size automatically for different screen resolutions. Bear in mind that your learner may be viewing the content on a different screen size than the one you are using to author course materials. In addition, there are a range of different screen sizes for mobile devices ranging from 320px to 414px wide in portrait view.

We recommend:

  • avoiding the use of the ‘thumb’ and ‘framed’ images for courses, because they are not responsive for mobile devices, and
  • preferably using a minimum width of 410px to accommodate for the majority of mobile screens in portrait view.

See, for example, the following markup we use for most images, either left or right-justified, which will re-size for smaller screens without awkward text-wrapping on larger than normal mobile phones:

 [[File:networkedlearning.jpg|410px|right]]

However, for more thorough coverage of image wiki markup options, you can practise using ‘frame’ and ‘thumb’ as image types with captions below.

Tip

An image may ‘float’ over other text or headings you have in your wiki page, or result in text-wrapping that is hard to read on mobile devices. To remedy this, try adding the following underneath your image markup: {{clear}}. This makes sure that the text or content which follows will start after the image has been embedded in the page. So, for example, the image on the top of this course page used the following markup to avoid text-wrapping around the image:

 [[image:Female_photographer-landscape.jpg|400px|right]]{{clear}}

Inserting an image with a frame

This is an image with the ‘framed’ attribute:

[[File:networkedlearning.jpg|framed|left|Creative Commons makes it flow.]]

Creative Commons makes it flow.


Note Framed images are displayed at the original size uploaded on the wiki, and will ignore the width parameter. Use ‘thumb’ if you want to change the size of the border.

Changing the size of the image

If you want to control the size of the image within a frame, use the ‘thumb’ type. You can use the size attribute to set the desired size in pixels. Here is the same image re-sized and centered:

[[File:networkedlearning.jpg|thumb|320px|right|Creative Commons makes it flow.]]

Creative Commons makes it flow.


Using an existing image on WikiEducator

We’ll start with an image that has previously been uploaded and is already available for use on WikiEducator.

activity

Activity

Purpose: Practise inserting and manipulating an image that already exists in the wiki

Message pad.jpg
  • Navigate to the practice area for images on your Sandbox page
  • Add the wiki syntax below to your page by clicking edit and entering this syntax into your page. (You can select the syntax here and copy it, and then paste it in your User page or Sandbox):
[[File:Message_pad.jpg|left|300px]]
  • Click on Save page to see the image displayed
  • Change the location parameter to ‘centre’ or ‘right’; save the page to confirm if you have modified the image placement
  • Change the image size parameter to ‘100px’ or ‘500px’, save the page, and look at the changes.

Uploading images

When you want to upload a new image onto the server, you use the basic syntax e.g. [[File:Picture.jpg]] After you have saved your page, the wiki syntax will appear like this:

File:Picture.jpg

Notes

  1. If the image already exists on the wiki, the image will appear right away, otherwise you will get a red link like the one above. The red link tells you that the image still needs to be uploaded onto the server
  2. Alternatively, you can upload images directly using the ‘Upload file‘ link, which is accessed from the tools sub-menu on the left of the screen and which launches the “Upload Wizard” tool
  3. As an open project, WikiEducator only permits the following openly licensed images: CC-BY, CC-BY-SA or images dedicated to the public domain, eg CC-0. Images which do not meet these open licence requirements, or where attribution metadata is missing (for example, the source link is not provided) will be deleted from the wiki
  4. Note the “Back to old form” link which is used for some images from non-standard ‘gratis’ image sites that do not apply Creative Commons Licences (e.g. Pixabay, Unsplash and Pexels.)
activity

Activity

Purpose: Practise uploading an image on WikiEducator

  • Navigate to the practice area for images on your Sandbox page
  • Search for an openly licensed image to use in your course materials or take a photograph and save this to your computer
  • Add the wiki syntax for your image, for example:
[[File:Name_of_image_file.png|right|410px]]
  • Click on Save page. If you have done this correctly, you should see a red link
  • Click on the red link and follow the instructions on screen to fill out the metadata, licensing information, and final upload of the image
  • Go back to your page with the image to view
  • Practise changing the placement and size parameters