can't get logo to display

can't get logo to display

by Robin Sowton -
Number of replies: 2

We uploaded our new logo to the /certificate/pix/seals directory and then updated the certificate to use that logo.

However now, whenever we try to view the certificate generated, we get this message and the certificate is not displayed:

FPDF error: Alpha channel not supported:
/web01/moodle/mod/certificate/pix/seals/newLogo.png

Any ideas on what is causing this? This new logo is also in the png format and it is just slightly wider (but has the same height) as the default Logo.png file.

Average of ratings: -
In reply to Robin Sowton

Re: can't get logo to display

by Raymond Fürst -

FPDF seems to have problems with pictures that have transparacy. Possible solutions:

  • Use a logo file without any transparancy (for example by removing the alpha channel)
  • Change the palette mode from indexed colors to RGB-palette or vice versa

Remember to disable "save certificate" in the certificate instance settings to force moodle to generate a new certificate after making changes. Otherwise a previously saved certificate is fetched from cache instead of a new one generated.

In reply to Raymond Fürst

Re: can't get logo to display

by Robin Sowton -

Thanks, Raymond! This worked.  It required unchecking the transparency box in Photoshop before saving it as a .png 8 file. Now it's loading just fine. Thanks again.