Plugin Directory

Ravatars

Revision History

Version 1.0.1

  • Initial release.

Advanced Tricks

If you get a memory error

Image manipulation functions are very memory intensive. If you get a memory error, try reducing the size of your source images by lowering the resolution or cropping them into smaller parts. You can also increase PHP's memory_limit.

Using ravatar_show ()

If you place Ravatars by calling ravatar_show () manually, note that you can also specify an optional "size" argument to override the default. For example:

ravatar_show($comment->comment_author_email, '160');

This would cause the Ravatar to be 160x160 pixels, even if the default was set to some other value. You could do this to make admin icons larger, for example.

Using ravatar_get ()

If ravatar_show () STILL doesn't give you enough control, you can call:

ravatar_get(email, size);

And it will return the URL to the created image without writing anything to the page.

Random Ravatar Field

Put this code in your theme:

for ($i = 0; $i < 100; $i++)
    ravatar_show ($i);

It will generate a field of 100 random ravatars, which is cool. This is how I generated the ravatar screenshot. It's also a great way to quickly test your source images.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (1 reporting)

100%
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(2 ratings)