Someline Avatar Service
Welcome to SomelineWhat is Someline Avatar Service
Someline Avatar provides the profile photo of any email in a wide range of sizes from just only one address.
It will display the user's own profile photo if the email is linked to an Someline User.
When to use
Use it when you need it or you can
- Display your own Someline profile photo on your blog or website.
- Enjoy encrypted using SSL/TLS and secure HTTPS avatar service.
- Display profile photos for your own website users without implementing upload, crop, save, storage function.
- Display any Someline User's profile photo.
- Have a profile photo service that is optimised speed for worldwide and even China.
How to use
URL Format
Here is a typical format of Someline Avatar url:
https://www.someline.com/en/avatar/{email_sha1_hash}/{size?}
email_sha1_hash
: (required) SHA1 hash of an email address
size
: (optional) Size of avatar (1px ~ 2900px) to be displayed, default is
100px
Example
An Someline Avatar with default size 100px: View
https://www.someline.com/en/avatar/f1da9d8d1bfae9ee847c3e839bde4a9c3ce2e564
An Someline Avatar with 500px size: View
https://www.someline.com/en/avatar/f1da9d8d1bfae9ee847c3e839bde4a9c3ce2e564/500
Code Implementation
PHP
<?php echo "https://www.someline.com/en/avatar/".sha1(strtolower(trim("someline@example.com")))."/80"; ?>
Python
# import code for encoding urls and generating sha1 hashes import urllib, hashlib # Set your variables here email = "someline@example.com" size = 80 # construct the url slavatar_url = "https://www.someline.com/en/avatar/" + hashlib.sha1(email.strip().lower()).hexdigest() + "/" + str(size)
Tips
If you are using this service on your own app, you can refer your users to sign in Someline to change their profile photo when they wish to.
Someline Profile Photo Change URL:
https://www.someline.com/en/playground#/app/user/profile_photo
Who use
Want to be listed? Implement it and send an email to libernlin#gmail.com
, after
review passed you should see yours here