Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71430

Drag-drop markers question form validation cannot handle SVG background images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.10.3
    • Files API, Questions
    • None
    • MOODLE_310_STABLE

      Reported in https://moodle.org/mod/forum/discuss.php?d=421358

      If you try to create a drag-drop markers question with and SVG background image (which should work, and did work in the past) then when you try to save, it always shows the "The shape you have defined goes out of the bounds of the background image" error.

      This is because the file API call to get the size of an image ultimately uses the PHP function getimagesize and that does not support SVG images as far as I can see.

      Increasingly, on the web, SVG images are what people are using, so ideally we should fix this in the File API if we can. (Google found https://stackoverflow.com/questions/6532261/how-do-you-get-the-width-and-height-of-an-svg-picture-in-php for me.)

            timhunt Tim Hunt
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.