Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem crop image


  • agenceglanum
    Participant

    @agenceglanum

    Hi all,

    We are encountering a problem when we want to crop the image profile -> “There was a problem cropping your profile photo”.
    We have the same configuration in our development environment (WAMP), and the crop works well.

    Any idea?
    Thanks!

    WP version: 4.9.3
    Theme: Woffice 1.7.2
    BBpress version: 2.5.14-6684
    Site: https://extranet.clipnclimb.biz/

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

  • Varun Dubey
    Participant

    @vapvarun

    @agenceglanum

    The PHP GD2 library is necessary on your server to handle images. In case of issues with common image handling and/or image cropping, ensure that your PHP has GD library enabled.

    On hosted servers, it is generally the case, but not on local with WAMP for example.

    You can check with your hosting support or create a phpinfo file, it will also help check GD support.


    agenceglanum
    Participant

    @agenceglanum

    Hi @vapvarun,

    Thanks for your time.

    I checked with a phpinfo file and it seems GD library is enabled. See below a screenshot:
    phpinfo - gd

    What do you think?


    agenceglanum
    Participant

    @agenceglanum

    In addition to my previous post, we realized that this happened when the image was less than 450 px wide (BP_AVATAR_ORIGINAL_MAX_WIDTH). By changing this constant to 50px it works but everything is pixelated.
    The problem must be related to the fact that when the image is smaller there is no resizing in the file bp-core-avatars.php ( $avatar_attachment->shrink( $bp->avatar_admin->original[‘file’], $ui_available_width );)

    Thanks


    agenceglanum
    Participant

    @agenceglanum

    Hi,

    Any news ?

    Thanks


    Le Petit Studio
    Participant

    @lepetitstudio

    Hi,
    I have exactly the same problem. Did you or someone else find a solution?
    Thanks

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