> For the complete documentation index, see [llms.txt](https://docs.moocit.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moocit.fr/avance/clic-sur-image-question.md).

# Clic sur Image (Question)

Comment intégrer une question de sélection d'un point sur une image.

Utilisez le type de question « **Clic sur Image** » / également connu sous le nom « **pointer sur une image** » pour amener vos apprenants à trouver une réponse dans une image.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXC1Xsy8Mpq1bvb5Th%2FScreen%20Shot%202021-07-01%20at%2015.13.25.png?alt=media\&token=5aad005d-864b-4d34-bf19-34681635c240)

Cet exercice est *cool* et interactif pour vos apprenants, mais peut être un *petit peu* plus compliqué à mettre en place que les autres (le premier fois), alors attachez votre ceinture 🏎️ et prenez votre café ☕ ! Suivez attentivement les instructions ci-dessous, et n'hésitez pas à nous contacter (<support@moocit.fr>) si vous avez besoin d'aide. 😊

## Configurez votre question Cliquez sur l'image

1\) Choisissez l'image que vous souhaitez utiliser. *La largeur de votre image **ne doit pas dépasser 950 pixels.*** Vous devrez peut-être redimensionner votre image au cas où elle serait trop grande.

2\) Ajoutez votre image à **Studio** > **Contenu** > **Fichiers et téléchargements**

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXD3YUqA_AJlw29528%2FScreen%20Shot%202021-07-01%20at%2015.17.45.png?alt=media\&token=6472a0df-b3b6-414f-bf38-a716704208cd)

3\) Copiez l'URL **Studio** de l'image d'arrière-plan souhaitée.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXG_W7sOHBwGF5vo7D%2FScreen%20Shot%202021-07-01%20at%2015.32.18.png?alt=media\&token=75614ef7-648d-49be-a9d6-709da5c64e71)

4\) Dans un nouvel onglet, ouvrez **l'unité** où vous souhaitez ajouter votre question.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXErxUXCPDxiG280-E%2FScreen%20Shot%202021-07-01%20at%2015.25.35.png?alt=media\&token=a8b6bbd1-ff64-402b-bb3e-9cb18f6350c3)

5\) Sélectionnez pour ajouter un nouveau composant **d'exercice** > **Avancé** > **Clic sur image.**

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXEw_WpDG-3gSTUIj3%2FScreen%20Shot%202021-07-01%20at%2015.25.41.png?alt=media\&token=4ebac588-4ed2-44ba-920f-602e440a51c1)

6\) Le composant apparaîtra avec un modèle déjà en place. Sélectionnez pour « **Modifier** » le composant.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXFHXInypC42I4FpB4%2FScreen%20Shot%202021-07-01%20at%2015.27.22.png?alt=media\&token=d6bc9956-0217-4756-9c81-dd1c3522ab79)

7\) You will see the following code for the exercise:

```
<problem>
    
    <imageresponse>
        <p>What country is home to the Great Pyramid of Giza as well as the cities of Cairo and Memphis? Click the country on the map below.</p>
        <imageinput src="https://studio.edx.org/c4x/edX/DemoX/asset/Africa.png" width="600" height="638" rectangle="(338,98)-(412,168)" alt="Map of Africa"/>
        <solution>
            <div class="detailed-solution">
                <p>Explanation</p>
                <p>Egypt is home to not only the Pyramids, Cairo, and Memphis, but also the Sphinx and the ancient Royal Library of Alexandria.</p>
            </div>
        </solution>
    </imageresponse>
</problem>
```

8\) Sur la ligne 4 entre `<p>` et `</p>`, modifiez le texte de votre question.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXFcUbB_CbKfetpuFM%2FScreen%20Shot%202021-06-21%20at%2013.04.02.png?alt=media\&token=d1c48ca3-1430-4cb1-93fc-9663bec8f95a)

9\) A la ligne 5, remplacez l'URL qui apparaît après `<imageinput src="`par l'URL de votre image (***copié à l'étape 3***). Conservez le `" "` avant et après l'URL.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXFvJkg_FBmC8NPbK3%2FScreen%20Shot%202021-06-22%20at%2013.23.14.png?alt=media\&token=08c3deb8-3a55-4dbe-a0ef-49885cef85fb)

10\) Toujours à la ligne 5, vous devez changer la largeur (width="600") et la hauteur (height="638") à celle de votre image. *Idéalement, la largeur de votre image ne doit pas dépasser 950 pixels.*&#x20;

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXHBdNODMfc6qz8wsa%2FScreen%20Shot%202021-07-01%20at%2015.35.34.png?alt=media\&token=742c9a7d-5b9e-46b1-85d7-8e5d016e8ccd)

11\) Enfin à la ligne 5, vous devez changer les coordonnées du rectangle qui délimite la réponse sur votre image (là où les apprenants doivent cliquer).

The formula is to make a triangle using the upper left hand corner (X axis, Y axis) and the bottom right corner (X axis, Y axis):

```
rectangle="(X-AXIS,Y-AXIS)-(X-AXIS,Y-AXIS)"
```

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXBImA6DOx43TWy5j9%2F-MdXJVJAfgkfBQeT9O6K%2FScreen%20Shot%202021-07-01%20at%2015.45.56.png?alt=media\&token=637c0bf3-a5e2-44d2-8a21-e0072be083ab)

12\) Sélectionnez pour enregistrer votre question.

13\) Cliquez sur 'montrer la correction' pour vous assurer que votre zone a bien été enregistrée.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXJXXcu4btc7Jxyw3O%2F-MdXJzvGNjAKhjYh10hk%2FScreen%20Shot%202021-07-01%20at%2015.47.49.png?alt=media\&token=ae1ea494-93ea-4a86-a6d8-6c3cdb85a796)

14\) Enfin, vous pouvez modifier l'explication qui apparaît, en cliquant à nouveau sur '**modifier**' et en changeant le test à la ligne 8-9 contenant l'explication de la réponse.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXJXXcu4btc7Jxyw3O%2F-MdXKXMIp-mxSrGpIQF-%2FScreen%20Shot%202021-07-01%20at%2015.49.10.png?alt=media\&token=9c9551a5-9ef6-4a09-8d91-7575ec1b0e16)

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MdXJXXcu4btc7Jxyw3O%2F-MdXKYxGeQTIkFZA77cq%2FScreen%20Shot%202021-07-01%20at%2015.49.34.png?alt=media\&token=e33ea352-e4dc-4c49-80cb-f088ca555492)
