04/10/2019 at 6:38 pm
#489503
Keymaster
@ Ellen
Connections like most plugins/themes use a center weighted scale/crop.
Add this filter to change this default:
function cn_output_default_atts_image_filter( $atts ) {
$atts['zc'] = 2;
return $atts;
}
add_filter( 'cn_output_default_atts_image', 'cn_output_default_atts_image_filter' );
Valid values:
0Resize to Fit specified dimensions (no cropping)1Crop and resize to best fit the dimensions (default behaviour)2Resize proportionally to fit entire image into specified dimensions, and add borders if required3Resize proportionally adjusting size of scaled image so there are no borders gaps
I think 2 is the only other crop mode that will work well in your use case.
Hope this helps!
