• Hello! Could you provide a hook or tell me what to change in code of the plugin to change image output?

    Now, if I will choose image of 200×200 size in admin, then only 150×150 image appear in front-end, and the image is fuzzy.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ronald Huereca

    (@ronalfy)

    @maycal

    What are you using currently to output the image?

    Thread Starter maycal

    (@maycal)

    LearnPress

    Thread Starter maycal

    (@maycal)

    LSM LearnPress showing the image profile.

    Plugin Contributor Ronald Huereca

    (@ronalfy)

    @maycal

    I have an outdated version of LearnPress, so hopefully this information is still valid.

    TLDR: You may have to contact LearnPress about this.

    LearnPress, from a programmatic standpoint, doesn’t have much flexibility in retrieving a custom size of profile picture.

    The function get_profile_picture is read with no filterable values from what I can tell scouring the codebase.

    This will require some changes from the developers of LearnPress to add and document this extra functionality.

    There is an option in the LearnPress settings under Profile where you can change the Avatar size. In my tests, I didn’t notice a difference, but perhaps you will have better luck? It’s under LearnPress->Settings->Profile->Avatar Dimensions.

    I’m sorry I wasn’t able to help.

    Ronald

    Thread Starter maycal

    (@maycal)

    Earlier I used “Simple Local Avatar Plugin”

    And this hook

    add_filter( 'pre_get_avatar_data', function( $args ) {
    	$args['size'] = 'full';
    	return $args;
    }, 5 );

    worked! The image became large and clear in LearnPress profile.

    I’d like to get similar hook for User Profile Picture plugin, could you help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change output image size’ is closed to new replies.