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

CLONE -Scalable Vector Graphics (SVG) files in Moodle are not correctly displayed in many Browsers

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Inactive
    • 1.6.2
    • None
    • Resource
    • None
    • Any

    Description

      Applies to Web browsers (Firefox, Opera) that natively display SVG and require correct MIME type to be served from Moodle.
      Internet Explorer + Adobe SVG Plugin view does not have a problem as it renders SVG base on the .svg extension alone.

      Problem can be simply resolved by adding the following lines to function get_mimetypes_array() in /lib/filelib.php

      i.e.

      'svg' => array ('type'=>'image/svg+xml', 'icon'=>'image.gif'),
      'svgz' => array ('type'=>'image/svg+xml', 'icon'=>'image.gif'),

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              inkwina Philip Serracino Inglott
              Stephen Bourget Stephen Bourget
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: