Support » Plugin: Simple Local Avatars » Avatar Distorted

  • ronsmithmd

    (@ronsmithmd)


    No matter how I crop the image in the media file, the avatar is the same width and height as the original, but it is squashed into the avatar box in the backend and frontend.

    What is the recommended image dimension or ratio for an avatar?

    Is there a way to eliminate the Gravatar image since it is confusing when it still shows up? Personally, I take the requirement that I have to use WordPress’s online avatar as a security violation. If I could eliminate this completely from WordPress altogether, I would.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Tung Du

    (@dinhtungdu)

    Hi @ronsmithmd,

    Can you please share with us the site that is having the issue? This plugin always crops the avatar using the 1:1 ratio, so the cropped avatar should be square. If you can give me the site having the issue, it’s much easier for me to trace the bug.

    > What is the recommended image dimension or ratio for an avatar?

    There is no recommended size/ratio. It depends on how your theme, this plugin crops avatar using the size your theme uses.

    > Is there a way to eliminate the Gravatar image since it is confusing when it still shows up?

    Go to Settings > Discussion, you’ll find the “Local Avatars Only” checkbox, checking that box disables Gravatar on your site.

    Inndesign

    (@inndesign)

    @ronsmithmd sounds like he is not clearing his cache completely. We have the same problem with the distorted image. We have for example a 170w x 192h profile image in media used for an About Us page, to also use as an Avatar, but this plugin fails to automatically crop a JPG square. As a result, a person will have to crop and upload a square version of each user, which basically voids the value of this plugin.

    Plugin Support Tung Du

    (@dinhtungdu)

    > We have for example a 170w x 192h profile image in media used for an About Us page, to also use as an Avatar, but this plugin fails to automatically crop a JPG square.

    @inndesign Hi, does the local avatar display correctly in the admin user list?

    I don’t know what “…does the local avatar display correctly in the admin user list?” mean? On every website we manage testing this plugin, there is no default avatar, only a gray box. Having tested this plugin, the avatar doesn’t appear distorted as much in the User list, but it is in the user profile. Other avatar managers do not distort images. The plugin simply does not handle images correctly. It should crop them, not distort them.

    Plugin Support Tung Du

    (@dinhtungdu)

    @inndesign Can you share a screenshot of user profile, where the avatar get distorted?

    Again, this problem is occurring on any version of WordPress, PHP and any theme: https://ibb.co/WDm1XbT

    Plugin Support Tung Du

    (@dinhtungdu)

    @inndesign, I can’t reproduce your issue on my end, the avatars get cropped correctly, you can check this gif for the result: https://giphy.com/gifs/0ar6D7uYuTsjbseAB8

    Can you check if your upload folder has the correct permission? Are the newly uploaded images get cropped correctly? For example, if you upload an image as a featured image of a post, does the thumbnail image get cropped correctly?

    Also, in your test, did you have any other plugins activated? Did you try the original default theme? If you can provide any public site having that issue, it’d be much easier to trace down the bug.

    I am using my company login this time by mistake. I disabled all plugins except Simple Local Avatars plugin, cleared the distorted avatar, cleared cache, reloaded avatar, same thing, the plugin distorts the image. Yes, of course all the folders have the correct permissions or no images would render properly. There is no cropping issue with the theme blog functions or images otherwise, WooCommerce, etc. Only your plugin.

    The image optimization libraries ImageMagick is not installed on our dedicated server, instead we use GD library which basically does the same thing. If your plugin is dependent on ImageMagick without consideration of GD as an option, that would pose a problem. GD does need to be referenced in your plugin’s code: https://www.php.net/manual/en/book.image.php

    @artiosmedia Were you previously using ProfilePress (previously WP User Avatar)?

    I ran in to same issue you are describing and it was because I was using the same images in the media library for the users that I was using with those plugins. The fix was deleting those user images and reuploading using the uploader the Simple Local Avatars uploader and it is now cropping.

    • This reply was modified 4 months, 1 week ago by Garet H..

    Thanks @pagetopixel. Yes, I was using WP User Avatar and switched out due to the ProfilePress heist. However, I deleted one Avatar to test, replaced it, cleared caches and the image still distorts when added on the admin side of users.

    It would behoove @dinhtungdu to install the previous WP User Avatar 2.2.16, uninstall, and then find the database anomaly where there is clearly a conflict going on in your case. Why it distorts in my case, I think it is related to strict ImageMagick dependencies in the plugin code.

    Plugin Support Tung Du

    (@dinhtungdu)

    Hi @inndesign, I still can’t reproduce your issue. Here are the steps I used:

    My WordPress install is using the GD library instead of ImageMagick.

    I create a new site (in a multisite network), activate WP User Avatar, set an avatar for my account.

    I deactivate the plugin, see the avatar broken.

    I activate Simple Local Avatar, upload a new avatar to my account, image is cropped correctly.

    Inndesign

    (@inndesign)

    All I can say which certainty is Simple Local Avatars distorts the avatars in 21 of our WordPress builds, all of which are current. Therefore there is an issue with the plugin despite your claim of being unable to replicate the issue. Other avatar plugins do not have the same problem, including the previous WP User Avatar 2.2.16.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.