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

Some course images not showing up in block_myoverview

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10.4
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Some image files uploaded to the "course image" area of the "edit course settings" are not displayed in the block_myoverview (on the dashboard). We have tried with different PNG image files. Some display in the block correctly and others do not.

      Technically, it seems like when an image is getting uploaded to the server, it's mime type is stored as image/png (mdl_files), while when it is getting loaded, its mime type is resolved as image/jpeg. This mimetype validation happens in is_valid_image and results in a default course image (random colored pattern) to be used in the block_myoverview

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            christofferbengt Christoffer Bengt
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: