1. I have found these lines inside wp-admin/includes/image.php:
function wp_shrink_dimensions( $width, $height, $wmax = 170, $hmax = 120 ) {
return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
2. I have also found these lines inside wp-includes/media.php:
` elseif ( $size == 'thumb' || $size == 'thumbnail' ) {
$max_width = intval(get_option('thumbnail_size_w'));
$max_height = intval(get_option('thumbnail_size_h'));
// last chance thumbnail size defaults
if ( !$max_width && !$max_height ) {
$max_width = 128;
$max_height = 96;
}
} `
Which one of those two files should I edit and what exactly do I need to do to change default thumbnail size?
3. Of course, I also want my thumbs to be cropped automatically so I'm wondering is it the right way to achieve that by changing 'false' values into 'true' values in this image.php line:
function wp_crop_image( $src_file, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs = false, $dst_file = false ) {
if ( is_numeric( $src_file ) ) // Handle int as attachment ID
$src_file = get_attached_file( $src_file );