Science Oxford Logo

Add Pictures to your Story

These instructions show you how to add pictures into your project.


Permissions

When choosing pictures, it is important to make sure that you have permission to use it, and it is always a good idea to thank whoever created it (if it does not belong to you), for example with a link to the website!

By using the link below to search for pictures, you will make sure that you only find images that are Copyright Free, so you have permission to use them for education purposes.

Image Search

If you want to create a project to share online with people other than your family, you will need to be even more careful about how you choose your images.

Remember, do not include any photos of yourself or anyone you know in your story, as you will be sharing it with the other club members during the workshop!


Using your picture in Twine

Go back to Twine, and open the passage in which you want to put your picture.

Copy and paste the entire line of code from imgbb into the passage - if you put it below your text it will be placed afterwards.


Example:

You arrive at Science Oxford's Creative Computing Club workshop and notice that something isn't right...
Instead of a laptop on each desk, there is a strange square box!
[[Prod the box]]
[[Go and look for help]]


<a href="https://imgbb.com/"><img src="https://i.ibb.co/rb0dcQ2/images-q-tbn-ANd9-Gc-Tx88-VEZt-KVd0r-Pi5-MXs-AH5-Do-C71-R99m-NBUYLVwk8p-GVsw6-Rc-s.png" alt="images-q-tbn-ANd9-Gc-Tx88-VEZt-KVd0r-Pi5-MXs-AH5-Do-C71-R99m-NBUYLVwk8p-GVsw6-Rc-s" border="0"></a>

The example code above adds an image of a computer to the bottom of my story's first paragraph.


Changing your picture's size

Once you have tested your story, to see what your picture looks like, you might want to change the size. You can do this by writing some extra code.

The line of code that imgbb gives you has a few different parts to it:

After border="0", and before the closing bracket ></a>, you can add additional information to help display your image.


There might be extra code at the end, which starts with <br> - you can delete this part.


Try width="200px" height="auto" to set the width of the image to 200 pixels wide. Keeping height as auto, means that it will scale the image so that the height matches the width, and doesn't get squashed or stretched.

Example:

<a href="https://imgbb.com/"><img src="https://i.ibb.co/rb0dcQ2/images-q-tbn-ANd9-Gc-Tx88-VEZt-KVd0r-Pi5-MXs-AH5-Do-C71-R99m-NBUYLVwk8p-GVsw6-Rc-s.png" alt="images-q-tbn-ANd9-Gc-Tx88-VEZt-KVd0r-Pi5-MXs-AH5-Do-C71-R99m-NBUYLVwk8p-GVsw6-Rc-s" border="0" width="200px" height="auto"></a>