
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
avatarly is a simple gem for creating gmail-like user avatars based on user email or any other string passed
inspired and influenced by https://github.com/johnnyhalife/avatar-generator.rb
Avatarly requires ImageMagick to be installed.
The gems are hosted at Rubygems.org. Make sure you're using the latest version of rubygems:
$ gem update --system
Then you can install the gem as follows:
$ gem install avatarly
Add to your Gemfile:
gem "avatarly"
and then type:
bundle install
To generate image please do:
Avatarly.generate_avatar(text, opts={})
the only required parameter is text. Other options that you can pass are:
As a result you will get an image blob - rest is up to you, do whatever you want with it.
For instance you can store avatar in directory with images:
img = Avatarly.generate_avatar(text, opts={})
File.open('public/images/avatar_name.png', 'wb') do |f|
f.write img
end
MIT
FAQs
Unknown package
We found that avatarly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.