All Projects → lincanbin → Material Design Avatars

lincanbin / Material Design Avatars

Licence: apache-2.0
Create material deisgn avatars for users just like Google Messager. It may not be unique but looks better than Identicon or Gravatar.

Projects that are alternatives of or similar to Material Design Avatars

Materialabout
It's a material-design about screen to use on your Android apps. A developer profile and application information easy to integrate. 🔖
Stars: ✭ 1,511 (+468.05%)
Mutual labels:  material-design, avatar
Postgui
A React web application to query and share any PostgreSQL database.
Stars: ✭ 260 (-2.26%)
Mutual labels:  material-design
pokemon
ascii database of pokemon... in python!
Stars: ✭ 49 (-81.58%)
Mutual labels:  avatar
Get Me Through
A Free, Offline, Real-Time, Open-source web-app to assist organisers of any event in allowing only authorised/invited people using Face-Recognition Technology or QR Code.
Stars: ✭ 255 (-4.14%)
Mutual labels:  material-design
github-avatar-generator
💕 A github-style avatar generator, powered by Java
Stars: ✭ 35 (-86.84%)
Mutual labels:  avatar
Ej2 Javascript Ui Controls
Syncfusion JavaScript UI controls library offer more than 50+ cross-browser, responsive, and lightweight HTML5 UI controls for building modern web applications.
Stars: ✭ 256 (-3.76%)
Mutual labels:  material-design
Gravatar
👤 Gravatar Helper & Generator (Laravel supported)
Stars: ✭ 19 (-92.86%)
Mutual labels:  avatar
Sequent
A simple continuous animation library for Android UI.
Stars: ✭ 263 (-1.13%)
Mutual labels:  material-design
Fancyalertdialog Android
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code.
Stars: ✭ 260 (-2.26%)
Mutual labels:  material-design
Material Playground
Polymer material design playground
Stars: ✭ 254 (-4.51%)
Mutual labels:  material-design
Android Carbon Forum
Android Client for Carbon Forum with Material Design.
Stars: ✭ 254 (-4.51%)
Mutual labels:  material-design
avatars-io
👤 Wanna get a social media avatar? Avatars-io makes it easy for you. Just give a username then get an avatar!
Stars: ✭ 13 (-95.11%)
Mutual labels:  avatar
T Mvp
Android AOP Architecture by Apt, AspectJ, Javassisit, based on Realm+Databinding+MVP+Retrofit+Rxjava2
Stars: ✭ 2,740 (+930.08%)
Mutual labels:  material-design
devBanner
Create your own devRant banner
Stars: ✭ 45 (-83.08%)
Mutual labels:  avatar
Ticktockmusic
Material Design Music Player
Stars: ✭ 262 (-1.5%)
Mutual labels:  material-design
AvatarGAN
Generate Cartoon Images using Generative Adversarial Network
Stars: ✭ 24 (-90.98%)
Mutual labels:  avatar
mk-letter-avatar
🅰 WordPress 字母头像插件(纯前端实现版) WordPress letter avatar plugin
Stars: ✭ 42 (-84.21%)
Mutual labels:  avatar
Materiallettericon
Material first letter icon like lollipop contacts icon. Letter(s) on a shape drawn on canvas.
Stars: ✭ 255 (-4.14%)
Mutual labels:  material-design
Laravel Material Design
Laravel 5.6 on Material Design Lite 1.3 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. This makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Uses laravel ORM modeling and has CRUD (Create Read Update Delete) functionality for all tasks. Quick setup, can be done in 5 minutes. It will take longer to obtain your Facebook, Twitter, and Google Plus API Keys than it will to set this up.
Stars: ✭ 263 (-1.13%)
Mutual labels:  material-design
Epiboard
Web Extension — A new tab page extension with material design and useful features 🆕 🎉
Stars: ✭ 262 (-1.5%)
Mutual labels:  material-design

Material-Design-Avatars Build Status

Create material deisgn avatars for users just like Google Messager.

It may not be unique but looks better than Identicon or Gravatar.

Online Demo

Language Support

ENGLISH

JTZW

FTZW

RIYU

Screenshot

Carbon Forum

Carbon Forum

Android Client for Carbon Forum

Android Client for Carbon Forum

Requirements

Initialize

<?php
require(dirname(__FILE__) . "/src/MDAvatars.php");
/*
'X'         : The character that you want to fill to the avatar.
512 (pixel) : The size of the avatar.
*/
$Avatar = new Md\MDAvatars('X', 512);
?>

Or initialize with composer:

{
	"require": {
		"lincanbin/material-design-avatars": "*.*"
	}
}
<?php
// composer 
require(__DIR__ . "/vendor/autoload.php");
use Md\MDAvatars;

$Avatar = new MDAvatars('X', 512);
?>

Usage

Show you avatar in the browser

<?php
$Avatar->Output2Browser();
?>
<?php
// You can resize the ouput size again here.
$OutputSize = 256;
$Avatar->Output2Browser($OutputSize);
// Output Base64 encoded image data.
$Avatar->Output2Base64($OutputSize);
// Get an image resource identifier.
$Avatar->Output2ImageResource($OutputSize);
?>

Save avatar to a file

<?php
$Avatar->Save('./avatars/Avatar.png');
//You can resize the size you want to save again here.
$Avatar->Save('./avatars/Avatar256.png', 256);
$Avatar->Save('./avatars/Avatar128.png', 128);
$Avatar->Save('./avatars/Avatar64.png', 64);
?>

Free memory

<?php
$Avatar->Free();
?>

Notice

If you do not need Chinese support, you can delete src/fonts/SourceHanSansCN-Normal.ttf.

When you input a Chinese character, it will automatically extract the first letter of the pinyin of the Chinese character instead of the original input if you deleted src/fonts/SourceHanSansCN-Normal.ttf.

$Avatar = new MDAvtars('林', 512);//The pinyin of "林" is "Lin".

This will be the same as that below if you deleted src/fonts/SourceHanSansCN-Normal.ttf.

$Avatar = new MDAvtars('L', 512);//The first letter of that pinyin is "Lin".

Fonts

Source Code Pro

Source Han Sans

License

Copyright 2015 Canbin Lin ([email protected])

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].