Support has been upgraded!
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.
Premium Support
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.
Free Support
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.
- This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by
Enrique Garibay.
-
AuthorPosts
-
01/14/2014 at 12:56 pm #277084
Enrique Garibay
GuestI 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.
Enrique Garibay
01/15/2014 at 12:17 pm #277173Enrique Garibay
Guestany update here?
Thank you.
01/16/2014 at 12:58 pm #277261Steven Zahm
Keymaster@ Enrique
You’ll have to mod the template ‘card.php` file to changing the cropping method.
Change this:
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );To this:
$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;
1is 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 gapsHope that helps!
01/16/2014 at 5:00 pm #277291Enrique Garibay
GuestThank you for the reply. I’ll try as you suggested.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
