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

Badge and user profile picture using an svg file doesn't display

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Create one user (s1).

      Testing scenario 1: Badges

      1. Login as admin.
      2. Access to "Site administration / Badges / Manage badges".
      3. Click "Add a new badge" button.
      4. Check "Image (SVG+XML) .svg .svgz" is not displayed below the "Image" field.

       

      Testing scenario 2: User profile

      1. Login as admin.
      2. Access to "Site administration / Users / Accounts / Browse list of users" 
      3. Edit one of the users there (for instance, the admin user).
      4. Check "Image files used on the web" below the New picture field doesn't contain ".svg .svgz".
      5. Login as s1.
      6. Access to the User profile and click "Edit profile" link.
      7. Check "Image files used on the web" below the New picture field doesn't contain ".svg .svgz".

       

      Show
      Setup Create one user (s1). Testing scenario 1: Badges Login as admin. Access to "Site administration / Badges / Manage badges". Click "Add a new badge" button. Check "Image (SVG+XML) .svg .svgz" is not displayed below the "Image" field.   Testing scenario 2: User profile Login as admin. Access to "Site administration / Users / Accounts / Browse list of users"  Edit one of the users there (for instance, the admin user). Check "Image files used on the web" below the New picture field doesn't contain ".svg .svgz". Login as s1. Access to the User profile and click "Edit profile" link. Check "Image files used on the web" below the New picture field doesn't contain ".svg .svgz".  
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_34_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-61215-master
    • Sprint:
      Moppies Kanban

      Description

      From the badges interface, it seems svg is an accepted file type for badges, however if you create a badge using an svg file, it doesn't display.

      And it happens the same when a SVG file is uploaded as User picture in their profile. In that particular case, no error is displayed, but the image is ignored so the "empty" user image is displayed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sarjona Sara Arjona (@sarjona)
              Reporter:
              tsala Helen Foster
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), 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, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              6 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Sep/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 20 minutes
                  3h 20m