From 1067cde0d0250e8205faab47e7cdcce07009b732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 2 Jun 2015 16:33:18 +0200 Subject: [PATCH] FEATURE: new letter avatars algorithm --- lib/letter_avatar.rb | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/lib/letter_avatar.rb b/lib/letter_avatar.rb index ae0419f2915..6001408b3d6 100644 --- a/lib/letter_avatar.rb +++ b/lib/letter_avatar.rb @@ -1,13 +1,13 @@ class LetterAvatar # BUMP UP if avatar algorithm changes - VERSION = 3 + VERSION = 4 - # Largest avatar generated, one day when pixel ratio hit 3 - # we will need to change this - FULLSIZE = 240 + # CHANGE these values to support more pixel ratios + FULLSIZE = 120 * 3 + POINTSIZE = 280 - class<