Install compface by entering the following commands in the terminal:
sudo apt update sudo apt install compface
Compress/decompress images for mailheaders, user tools
Converts 48x48 .xbm format (X bitmap) files to a compressed format that can be placed in your X-Face: mail header. Some mailreaders, like exmh will then display this image when the user is reading your mail.