Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alternaDev/go-avatar-gen

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alternaDev/go-avatar-gen

  • v0.0.0-20160517185836-b5ca997c0389
  • Source
  • Go
  • Socket score

Version published
Created
Source

go-avatar-gen

Generate Avatars for Users.

Usage

GenerateAvatar(input string, blockSize int, borderSize int

Use like this:


import (
  avatarGen "github.com/alternaDev/go-avatar-gen"
)

avatar := avatarGen.GenerateAvatar("HeinzPeda", 64, 32) // => *image.RGBA

You can then write this avatar to a HTTP Response like this:

import (
  avatarGen "github.com/alternaDev/go-avatar-gen"
)

avatar := avatarGen.GenerateAvatar("HeinzPeda", 64, 32) // => *image.RGBA
err := avatarGen.WriteImageToHTTP(respWriter, avatar)

FAQs

Package last updated on 17 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc