silverstripe-framework/filesystem
JorisDebonnet 9eac541740 Enhance GD::greyscale to allow darker or lighter results, and change color weights for greyscale (#5332)
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.
2016-04-21 19:26:46 +12:00
..
File.php NEW consistent file icons 2016-03-19 10:36:11 -07:00
FileFinder.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
FileNameFilter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Filesystem.php MINORE: Remove training whitespace. 2016-01-07 10:15:54 +13:00
Folder.php NEW consistent file icons 2016-03-19 10:36:11 -07:00
GD.php Enhance GD::greyscale to allow darker or lighter results, and change color weights for greyscale (#5332) 2016-04-21 19:26:46 +12:00
ImagickBackend.php MINORE: Remove training whitespace. 2016-01-07 10:15:54 +13:00
Upload.php Merge pull request #5241 from timkung/pulls/upload-validator-filesize-spelling 2016-03-29 16:15:27 +13:00