Zoom in images in my quiz

Zoom in images in my quiz

by manoj joseph -
Number of replies: 6

Is there any option available for users to zoom images in moodle quiz? 

Thank you

Average of ratings: -
In reply to manoj joseph

Re: Zoom in images in my quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
Hello Manoj,

Does not work if the "Browser security" parameter of the quiz is set to "Full screen pop-up with some JavaScript security":

  • A rudimentary way to do this is to right click on the image and select "View Image" (Firefox) or "Open image in new tab" (Chrome), then zoom the image using the browser's zoom (Ctrl + or Ctrl mouse wheel). This will work well if the image is actually larger than displayed in the quiz.

Works even if the "Browser security" parameter of the quiz is set to "Full screen pop-up with some JavaScript security": 

  • On Windows computers, you can use the system's Magnifier. See here for details.
  • Use the Firefox extension "Zoom Image ". (Note that you must right-click and rotate the mouse wheel simultaneously.)
Average of ratings: Useful (3)
In reply to Dominique Bauer

Re: Zoom in images in my quiz

by manoj joseph -
Thank you.In moodle mobile app that option available
In reply to manoj joseph

Re: Zoom in images in my quiz

by Jiří Pazourek -

I have got a simple solution, maybe useful for you - see attachment

<img onmouseenter="this.style.zoom='5'" onmouseleave="this.style.zoom=''" width="100px" src="motyl12.jpg">

Average of ratings: Useful (1)
In reply to Jiří Pazourek

Re: Zoom in images in my quiz

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
zoom is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

In reply to Dominique Bauer

Re: Zoom in images in my quiz

by Jiří Pazourek -
thanx for a quick reply; yes it did not work in Firefox; is the following solution a standard one? /jp

style="transition:.1s;width:150px;" onmouseover="this.style.width='600px'" onmouseout="this.style.width='150px'"