The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
I have the Slim Plus directory plugin working great. User has asked whether they can display other images of differing aspect ratios. Is that possible?
The user is uploading family images instead of a single person image. As such, the photos are getting cropped to fit the current aspect ratio.
Please advise. Thank you.
any update here?
You’ll have to mod the template ‘card.php` file to changing the cropping method.
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'zc' => 1, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
Here are the valid values;
1 is the default method:
0 Resize to Fit specified dimensions (no cropping)
1 Crop and resize to best fit the dimensions (default behaviour)
2 Resize proportionally to fit entire image into specified dimensions, and add borders if required
3 Resize proportionally adjusting size of scaled image so there are no borders gaps
Hope that helps!
Thank you for the reply. I’ll try as you suggested.
You cannot reply to this support topic. Please open your own support topic.