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 11 years ago by
Steven Zahm.
-
AuthorPosts
-
08/10/2015 at 7:10 am #342601
Brian McGrath
ParticipantHaving major issues with inconsistent image scaling and cropping for some items. While it has worked for some entries it doesn’t for a large number. (ie. some are scaling correctly without cropping and others are not scaling but instead are being cropped. Not sure if this is still a server caching issue or not.
08/10/2015 at 11:46 am #342615Steven Zahm
Keymaster@ Brian
Since this is posted in the Slim Plus template support forum I’m going to assume this question relates to this template, yes? If it doesn’t please let me know.
Slim Plus requires a specific image size in order to maintain its layout design. The size is 100x120px. To achieve this Connections will scale it so one of the image dimensions, the smallest scaled dimension, to fit and then it crops the largest scaled dimension of the image so the new scaled and cropped dimension are 100x120px. This is all based on the image’s center.
I’m certain this is what you are seeing, but if it is not, you’ll have to share links with me showing examples of where it is not and probably the original source images so I can see if I can replicate the issue.
Also, this FAQ might help.
Let me know if this helps!
08/10/2015 at 1:37 pm #342622Brian McGrath
ParticipantThanks Steven, have already modified card.php width and height properties which seemed to sort it for many of the logos however a large percentage still not scaling properly. Is is possible to batch regenerate all logos / images?
08/10/2015 at 3:05 pm #342627Steven Zahm
Keymaster@ Brian
Connections creates its image dynamically/on demand so there is no need or way to regenerate thumbs. Changing the image parameters will always create the new image variation based on the supplied parameters.
Since you are editing the
card.phpfile make sure you set the crop mode to either2or3. They work best for logos. Here’s an example:$entry->getImage( array(
‘image’ => $atts[‘image’],
‘height’ => 120,
‘width’ => 100,
‘zc’ => 2, // Crop mode.
‘fallback’ => array(
‘type’ => $atts[‘image_fallback’],
‘string’ => $atts[‘str_image’]
)
)
); -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
