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

Profile does not support transparent PNG images properly

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9
    • 2.0
    • General
    • None
    • GD 2

    Description

      Uploading transparent PNG images to your profile causes the transparent colour to be made black.

      I implemented a fix for this for Mahara today, maybe Moodle is interested in it too . Patch for Mahara is here:

      http://git.catalyst.net.nz/gitweb?p=mahara.git;a=commitdiff;h=bfaa89d7ec77e2f47657783af277e78e6824a39a

      I think your gdlib.php, function imagecopybicubic is what needs to be patched, but it's after midnight here and I don't know the moodle codebase so well, so will leave the details to someone else

      Attachments

        1. patch.tar.gz
          0.5 kB
        2. patch.zip
          2 kB

        Issue Links

          Activity

            People

              skodak Petr Skoda
              nigel Nigel McNie
              Nobody Nobody
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10