Image Hotspots

Is it possible to position the Hotspot in a exact pixel position ?
If there a a few hotspots in a row, it looks pretty odd, if they are not exact in line.

Greeting from Germany
Berthold Lausch

 

otacke's picture

Hi Berthold!

You can, if you're not afraid of editing your h5p content file manually.

  1. Download your file - it's basically a zip file although it ends with .h5p.
  2. Open the file content/content.json within the archive and modify the coordinates of your hotspots - they'll look something like {"header":"Blueberries","position":{"x":35,"y":33}, ... where header will help you to find the right hotspot. Depending on your setup, you might do this step by step by first unzipping the archive, modifying the file and zipping it again.
  3. Upload the modified archive to your system.

If you need some personal assistance: Why not have trip from Aachen to Cologne on Friday or Saturday? I'll be at the OERcamp, hosting some workshops about H5P.

Thank You Otacke,
I am working with drupal, so I dived into the database and ajusted the position values, like You explaint it.
It works fine, now all the hotspots are exactly in line.

@Friday or Saturday
Unfortunately I am not in Aachen this weekend, so we will not see us.

But anyway: thanks for your hint concerning the positon of the hotspots.

Berthold