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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3, 1.7
    • Component/s: Resource
    • Labels:
      None
    • Environment:
      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

              Assignee:
              skodak Petr Skoda
              Reporter:
              geoffr Geoffrey Rowland
              Tester:
              Stephen Bourget Stephen Bourget
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/06