How can i change the quality of the avatar? The Medium sized avatar is to small and the quality is to bad to blow it up a little. is it possible to create a custom size for the avatar?
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.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
You must log in to post replies.No amount of quality is good enough for browser upscaling. My suggestion if you need to increase the size is to use large instead and browser downscale if needed.
You can crate a custom size for an avatar, I just did it for one of our projects. You need to define it and add it into the config setting used by the cropper: http://reference.elgg.org/actions_2avatar_2crop_8php_source.html#l00031
Then if you have existing users you can either do a run-once script to generate their missing icon size or have generate on the fly if it doesn't exist.
I am putting together a plugin with most common patterns that I tend to reimplement over and over again: https://github.com/hypeJunction/Elgg-ui_icons.
You can add a custom size to the global config, but note that the core still needs updates to handle all sizes properly, e.g. groups plugin ignores global size names (respects the dimensions though). File plugin implements it's own sizes (quite annoying, and I hope to change that in 3.x).