Subject: | Size no longer limited to 80 pixels |
As per http://en.gravatar.com/site/implement/url the gravatar requested
size can be as large as 512 pixels.
The changes appear to be quite simple.
I've attached a patch file
Subject: | Gravatar-URL.size.patch |
--- /usr/local/share/perl/5.10.0/Gravatar/URL.pm-original 2008-11-26 15:11:59.000000000 +0000
+++ /usr/local/share/perl/5.10.0/Gravatar/URL.pm 2008-11-26 15:14:13.000000000 +0000
@@ -64,7 +64,7 @@
Specifies the desired width and height of the gravatar (gravatars are square).
-Valid values are from 1 to 80 inclusive. Any size other than 80 will cause the original gravatar image to be downsampled using bicubic resampling before output.
+Valid values are from 1 to 512 inclusive. Any size other than 80 may cause the original gravatar image to be downsampled using bicubic resampling before output.
size => 40, # 40 x 40 image
@@ -102,8 +102,8 @@
my $base = $args{base} || $Gravatar_Base;
if ( exists $args{size} ) {
- $args{size} >= 1 and $args{size} <= 80
- or croak "Gravatar size must be 1 .. 80";
+ $args{size} >= 1 and $args{size} <= 512
+ or croak "Gravatar size must be 1 .. 512";
}
if ( exists $args{rating} ) {