WordPress.org

Ready to get started?Download WordPress

Forums

"user-photo" plugin - Resize Default Dimensions (3 posts)

  1. tinytank
    Member
    Posted 5 years ago #

    Hi,

    Hopefully this isn't a dumb question, but I want to change the default dimensions for the User Photos from 80x80 for the thumbnail to 48x48, and from 150x150 to 250x250 for the photo.

    In the plugin description it says you can control this from the options, but I don't know where the options are... are they in the dashboard somewhere or in the plugin file?

    Around line #111 in the user-photo.php, I tried doing this:

    define('USERPHOTO_DEFAULT_MAX_DIMENSION', 250);
    
    define('USERPHOTO_DEFAULT_THUMB_DIMENSION', 48);
    
    #define('USERPHOTO_DEFAULT_JPEG_COMPRESSION', 90);
    
    #define('USERPHOTO_DEFAULT_LEVEL_MODERATED', 2);
    
    define('USERPHOTO_FULL_SIZE', 1);
    
    define('USERPHOTO_THUMBNAIL_SIZE', 2);
    
    add_option("userphoto_jpeg_compression", 90);
    
    add_option("userphoto_maximum_dimension", 250);
    
    add_option("userphoto_thumb_dimension", 48);

    But no avail... my photos are still appearing as 150x150 and 80x80 respectively. I tried reuploading photos, but that didn't work.

    Any help would appreciated!

  2. Weston Ruter
    Member
    Posted 5 years ago #

    Go to Settings > User Photo and change "Maximum dimension" and "Thumbnail dimension"

  3. Jauhari
    Member
    Posted 5 years ago #

    Wow, this is what's I looking for. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic