04/10/2019 at 4:32 pm
#489480
Keymaster
@ Ellen
Set grid size to 320 x 400:
Example:
[connections image_width=320 image_height=400]
That will ensure the images are scaled down to the same ratio of the source images. Well, technically the height should be 401.333333333. Rounded down should be fine.
Changing the quality on the image settings will actually not have any effect on Gridder since it dynamically creates the required image sizes it needs. Those settings only affect the default cached images sizes which are created when an image is added to an entry.
Connections defaults to the same quality as core WordPress. This default can be changed by adding a filter.
add_filter( 'cn_output_default_atts_image', 'cn_image_quality_100' );
function cn_image_quality_100( $atts ) {
$atts['quality'] = 100;
return $atts;
}
Use the Code Snippets plugin to add this filter.
Hope this helps, let me know!
