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

Use a single SVG for mime-type icons.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7, 3.9.2
    • Fix Version/s: None
    • Labels:
      None
    • Workaround:
      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.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_39_STABLE

      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              bawjaws David Scotson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated: