المواضيع التي نشرها David Scotson

Moodle in English -> General developer forum -> Moodle's future with YUI -> Re: Moodle's future with YUI

بواسطة - David Scotson
I agree with the general notion that there's no immediate need to panic, but "nothing has changed" doesn't seem like a great summary of their blog post.

They say they might try to take over stewardship of YUI. They might migrate off YUI. They might start a radical fork of YUI and dump a lot of stuff *they* don't need. But, they don't actually know what they're going to do yet and it seems like all the options are different from the current situation. At best they'll help to avoid the worst of the withdrawl symptoms while Moodle plans its next move.

Moodle in English -> Themes -> Why are user images served as PNGs? -> Re: Why are user images served as PNGs?

بواسطة - David Scotson
Yeah, mine isn't a gravatar, it's uploaded directly into Moodle.

As is Gareth's:

https://moodle.org/user/view.php?id=442195&course=5

Both of our user icon suit being PNG though as they are blocks of flat color.

Stuart's is a "photographic" image and therefore would be best as a JPEG. It too is a PNG though:

https://moodle.org/user/view.php?id=1058627&course=5

The default Gravatar mm image is very similar to the Moodle default one. It seems if you have Gravatar support turned on then Moodle has no way to know if your have an image uploaded or not, so it gets a Gravatar default image instead.

But on Moodle installs without Gravatars turned on, the default f1 image is a png. (Though should probably be switched to an SVG for both crisper lines and smaller file size).

Moodle in English -> Themes -> Why are user images served as PNGs? -> Re: Why are user images served as PNGs?

بواسطة - David Scotson
The default one is definitely a PNG (though it can be replaced in a theme with anything you like e.g. an SVG icon).

How are you checking what file type they are? They don't have file endings which complicates things but FIrefox at least can tell you by right clicking and "view image info".

Moodle in English -> Themes -> Why are user images served as PNGs? -> Re: Why are user images served as PNGs?

بواسطة - David Scotson
After a bit of spelunking I found this commit message:

MDL-11000 finally switching to png images with jpg fallback, based on code by Luigi Pinca مبتسم

Checking out that bug it seems that defaulting to PNG images was done as a side affect of fixing other issues. As Mary mentioned it was due to alpha being handled poorly compared with Mahara.

Since we already have the facility to do both I quite like the idea suggested in the bug of using JPEG if the user uploads a JPEG and PNG if the user uploads a PNG, seems like we'd get the best of all worlds then.

Might look at dropping the default quality from 90 too, though it depends on how good the GD implementation is.