• When I impost a photo into wp, it automatically generates a thumbnail version. Is there a way to control the size of that thumbnail?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jimhere

    (@jimhere)

    I found this on line 1789 of “admin-functions.php”

    function wp_shrink_dimensions($width, $height, $wmax = 128, $hmax = 96)

    But I’m scared. Would changing 96 to 150 break everything?

    Wuss!

    (j/k… You should be fine.)

    Thread Starter jimhere

    (@jimhere)

    I just found a simliar function at the very bottom of that php page. I guess I gotta try changing them both…

    function get_udims($width, $height) {
    if ( $height <= 96 && $width <= 128 )
    return array($width, $height);
    elseif ( $width / $height > 4 / 3 )
    return array(128, (int) ($height / $width * 128));
    else
    return array((int) ($width / $height * 96), 96);
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Thumbnail size’ is closed to new replies.