• Resolved theitz

    (@theitz)


    We have Simple local Avatars 2.4.0 running on our site.
    During the upload process of an avatar picture the image is cropped to 200 x 200 pixels.
    This happens directly after I’ve uploaded the image.
    Is there something we can do to prevent this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Faisal Alvi

    (@faisal03)

    Hi @theitz, thanks for reaching out. Fortunately, this is already handled in the recent release 2.5.0. Please update the plugin to 2.5.0 and check again.

    Harry

    (@hellowpexperts)

    Nope we are using Version 2.5.0 still cropping the images 200 x 200 pixels and can’t see image proper

    https://prnt.sc/kEHLTfNZsDHR

    Plugin Contributor Faisal Alvi

    (@faisal03)

    @hellowpexperts thanks for reaching out. I have re-checked and confirmed the avatars are not forced cropped to 200×200 anymore. Please check your theme’s code, it seems like the size is passed hard coded in your theme.

    For example:
    get_avatar( $id_or_email, 200 ) where the second parameter is a size.

    Read more here.

    • This reply was modified 2 years, 2 months ago by Faisal Alvi.

    Hi @faisal03 my avatars are also automatically cropped too 96px
    I tried changing the get_avatar default size from 96px to 200px through changing the pluggable.php file.

    But it does not change the avatar size.

    I am using avada theme and a image element with dynamic author avatar content. See on the bottom of this blog:
    https://askemo.nl/een-mto-is-prima-als-je-ook-vasthoudt-aan-communicatie-per-postduif/

    Any advice?

    Kr. Rody

    Plugin Contributor Faisal Alvi

    (@faisal03)

    @hithunters thank you for reaching out.

    1. We should never change anything in the core files. You mentioned that you have changed the default size in the pluggable.php file, this is highly not recommended. It is because when WordPress will release a new update, all of its core files including the pluggable.php will be overwritten and your changes will be wiped out.

    2. Instead of changing the default avatar, you should use the following code in the file from where the avatars are loading on the site. Please read this for more information.

    <?php echo get_avatar( $comment, 32 ); ?>

    3. I have checked the site you mentioned and the avatar loading at the bottom of the blog post is not loading from the Simple Local Avatar, it is coming from the Gravatar. This means that you might not have set an avatar using the plugin’s (Simple Local Avatar’s) setting. Please go to the WordPress Back end > Users > Edit a user > Select an avatar > Save User. Read more here.

    • This reply was modified 2 years, 1 month ago by Faisal Alvi.

    It’s cropping it here too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images are cropped to 200 x 200 pixels’ is closed to new replies.