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

Use a single SVG for mime-type icons.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • 2.7, 3.9.2
    • None
    • MOODLE_27_STABLE, MOODLE_39_STABLE
    • Hide

      It might be possible to intercept these icons in the pix_url renderer and strip the pixel size indicator off.

      Show
      It might be possible to intercept these icons in the pix_url renderer and strip the pixel size indicator off.

    Description

      The current system for mime-type icons in pix/f that get displayed for different file types in the file picker and elsewhere is based on bitmap image formats. As a result it expects multiple copies of the file for specific pixel sizes e.g. we have

      pdf-128.png pdf-256.png pdf-48.png pdf-72.png pdf-96.png
      pdf-24.png pdf-32.png pdf-64.png pdf-80.png pdf.png

      If you wish to use SVG icons for this purpose, you need to provide multiple copies of the same file with different names, which increases bandwith usage, load time, memory usage etc. for no benefit since the SVG is already scalable and is a bit of an annoyance when creating/updating the icons.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bawjaws David Scotson
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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