• Resolved beanthere22

    (@beanthere22)


    I am using custom Avatars and the displayed image is stretched horizontally (displays too wide, but height is OK) – maybe just one or two pixels – but visibly stretched from the original aspect ratio.

    I am using images that are wide enough that they do not need to be stretched to fit.

    Any way for me to fix that? Or for you to fix that?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter beanthere22

    (@beanthere22)

    I did find a quick workaround for the problem using CSS to reshape the author picture in the author box. Fine for using a “square” shape, but “round” shapes are now ovals. Needs some deeper coding than I can do to fix the picture stretching issue.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @beanthere22

    I’m glad you found a fix already, but if you need another workaround, you could try this one: https://publishpress.com/knowledge-base/author-boxes-and-custom-css/#h-2-fix-stretched-author-avatars

    Thanks,

    Thread Starter beanthere22

    (@beanthere22)

    Here is what I did:

    .pp-multiple-authors-boxes-wrapper.pp-multiple-authors-layout-boxed.multiple-authors-target-the-content .pp-author-boxes-avatar img {
    height: 85px !important;
    }

    Probably a little inelegant, but I was in a hurry. This changes the height from the default of 80px to 85px and leaves the default width at 80px. That’s just enough to make the distortion go away and not really visibly deform the circle.

    In the workaround you sent, the “contain” is worse than the stretching if the art/photo has a background. The default placement of the image needs to be center center and fit either the width or height depending on if the image is vertical or horizontal. I’m just not enough of a css whiz to do that – but I’m thinking it might not overcome the issue in the base code.

    object-fit: contain;
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @beanthere22 Yeah, the workaround will depend on what images you are using. The object fit contain works for my profile photo, it might not on your case.

    Feel free to let us know if you have any other issues.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Author Avatar stretched’ is closed to new replies.