Web service for easily use profile photos on your web page.
You don't need to maintain same implementations for getting user pictures in your projects, just generate URL and you will get a CDN-powered credential management free user profile picture.
Use in HTML:
<img src="https://socatar.com/twitter/yegor256/50-50" />
or via API:
// cURL save image to your current folder curl https://socatar.com/github/terales/50-50 -o terales.jpg // Windows via PowerShell, save image to your Desktop Invoke-WebRequest https://socatar.com/github/terales/50-50 -OutFile "$([Environment]::GetFolderPath("Desktop"))\terales.jpg"
Currently supported sources
- Facebook with id, like
100001584476227OR profile slug, like
- GitHub with login, like
- Google with Google+ id, like
+SriramSaroopOR gmail address
- Gravatar with email
- Twitter with username, like
Resize images with Cloudinary
Thanks to the Cloudinary generous limits we are able to resize images from any source. Just prepend required width and height to the image url:
https://socatar.com/twitter/yegor256/50-50 width - ^^ ^^ - height
If you omit size (ex.
https://socatar.com/twitter/yegor256) than 100×100 image would be served. For you custom deployment you can modify it via environment variables, see
When Cloudinary integration is enabled Socatar.com will get the url of required image and redirect it to Cloudinary fetch with transformations applied.
Get an original image with a special
Please, report anything via the GitHub issues: https://github.com/terales/socatar/issues.
Business opportunities, security issues and any violations should be emailed to firstname.lastname@example.org.
Technical questions about service usage or configuration should be asked on StackOverflow and link to the question should be sent to email@example.com.
How you can help
- use this project and give a feedback,
- fix any misspellings or typos on the home page, readme and other files,
- make security or performance audit and create an issue or PR with improvement,
- add new sources for images,
- dive into help-wanted issues.
Please, refer to contributing guideline for environment setup and recommended workflow.
This project is licensed under the MIT License — see the license file for details