• Hi,

    Hopefully this isn’t a dumb question, but I want to change the default dimensions for the User Photos from 80×80 for the thumbnail to 48×48, and from 150×150 to 250×250 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 150×150 and 80×80 respectively. I tried reuploading photos, but that didn’t work.

    Any help would appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“user-photo” plugin – Resize Default Dimensions’ is closed to new replies.