mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
9eac541740
Tweaking the first three parameters (R, G, B) allows you to get a different mix of colors into grey, but it does not allow you to make the result lighter or darker because their total is normalized. This is quite a common operation on greyscaled images though, so I added a fourth parameter: brightness. It defaults to 100% so that it does not have any effect when not used (making this backwards compatible). $brightness = 50 will make it darker, $brightness = 150 will overlight it. |
||
---|---|---|
.. | ||
File.php | ||
FileFinder.php | ||
FileNameFilter.php | ||
Filesystem.php | ||
Folder.php | ||
GD.php | ||
ImagickBackend.php | ||
Upload.php |