I am trying to pull 256px versions of site avatars. It

Hi I am trying to pull 256px versions of site avatars. It seems that if I try to access the 256px version of the image, I get a randomly generated one.

Site avatars are generated by this plugin. How can I generate and access high res images?

  • Vinod Dalvi

    Hi @taropaa,

    I hope you are well today and thank you for your question.

    To generate 256px version of the Avatars images edit the following Avatars plugin file on line number 658 as below.

    Avatars plugin file:
    avatars/avatars.php

    Before Editing:
    return array( 16, 32, 48, 96, 128 );

    After Editing:
    return array( 16, 32, 48, 96, 128, 256 );

    Note: You are making changes in the plugin file and these changes will be overwritten and lost when you update the plugin and you will have to make these again after plugin updation. we don't have any other option to make these changes without editing plugin file.

    You can access and display 256px version of the Avatars images using the following code in your theme template.

    <?php echo get_blog_avatar( get_current_blog_id(), '96', '' ); ?>

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.