Elgg 2.3.14
I need to change the avatar size of an object but keep it square. I googled but did not find a solution.
Any guidance will be appreciated.
Thanks a lot
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.
- Jeroen Dalsem@jdalsem

Jeroen Dalsem - 0 likes
- Reuven@reuven

Reuven - 0 likes
You must log in to post replies.Have a look at the documentation here: http://learn.elgg.org/en/stable/guides/database.html?highlight=sizes#entity-icons
Be aware that this information is for Elgg 3. The icon sizes hook also exists in Elgg 2.x, but the thumbnails are only generated when uploading a new icon. In Elgg 3 they are generated on demand.
Thank you Jeroen
This mischievous hook on Elgg 2.3 works well --> elgg_register_plugin_hook_handler('entity:icon:sizes', 'object', 'set_custom_icon_sizes') :)