Please help, How to make all new uploaded users avatars into grayscale?
There is a php function:
imagefilter($image, IMG_FILTER_GRAYSCALE);
How to implement it into the elgg?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Sharon@sharon

Sharon - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- 'imagefilter' is a php *gd *only (^= imagemagick) function.
- there's 4 resized images created from the one master image uploaded.
- are you sure you want to get bogged into gray-scaling profile avatars ? if i were a new user on your website and my nice techni-color avatar wad immediately converted to yuck gray-scale !! i'd most likely and never return lolz ;-)
- trying to code that gd function into the upload routines might seem easy at first - but you must have read the warnings about *not screwing with the core and bundled plugins' code !? too much scope for code troubles later on !
- you'd be far better off coding some simple-like *utility code to go through your datafolder/ YYYY/ MM/ DD/ GUID/ profile/ files and (batch) converting images there. lesser headaches.
- Evgeniy@babyfox

Evgeniy - 0 likes
- Sharon@sharon

Sharon - 0 likes
You must log in to post replies.u create a new avathar plugin useing the code of core/avathar or edit core avathar/upload image function and use the image filter function (bt editing core may be affecting furthrer upgradings)
sharon , DhrupDeScoop Thanks for help!!!
But I found a solution of this task without php coding:
http://demosthenes.info/blog/532/Convert-Images-To-Black-And-White-With-CSS
this css method works fine in firefoks, ie, chrome. Opera dosn't support filters yet :)
K..good and thanks for post the solution..