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.
Tagged: 8.5.8, Gridder, image_height, image_width, shortcode, template
- This topic has 4 replies, 2 voices, and was last updated 7 years, 8 months ago by
Alfonso Ballesteros.
-
AuthorPosts
-
01/14/2016 at 5:04 am #361090
Alfonso Ballesteros
ParticipantHello,
I set a custom size for the grid (image_width=’280′ image_height=’220′) but my images are croped and are not displayed correctly. I tried to resize the images before uploading and also the different crop options in settings->images and it doesn´t work.
01/14/2016 at 10:20 am #361132Steven Zahm
Keymaster@ Alfonso
re: I set a custom size for the grid (image_width=’280′ image_height=’220′) but my images are croped and are not displayed correctly
The crop being applied to the images will be “Crop and resize proportionally to best fit the specified dimensions, maintaining the aspect ratio.” Meaning if you are uploading oversized images (larger than 280×220) then the image will be scaled down using the smaller dimension and then the larger dimension will be cropped based center of the image.
re: the different crop options in settings->images and it doesn´t work.
Those settings will not affect the images in the grid. The Large Image settings will affect the image displayed on the profile view of the template.
Hope that helps!
ps. Ensure you do not have errors in your shortcode, I supetct you do. Please follow the advice given here when working with shortcodes.
01/14/2016 at 11:24 pm #361216Alfonso Ballesteros
ParticipantThe images are displayed as attached in the image.
I tried the 4 different crop modes for Thumbnail Image, Medium Image, Large Image and Logo but the images remain the same. I also tried to upload smaller size images and the problem is not solved. Do you know what could be the problem? Thank you
Attachments:
You must be logged in to view attached files.01/15/2016 at 10:59 am #361330Steven Zahm
Keymaster@ Alfonso
re: I tried the 4 different crop modes for Thumbnail Image, Medium Image, Large Image and Logo but the images remain the same.
Changing the crop mode on the Image settings will not affect the image used on the Gridder page. Only the Large Image size and its crop mode will be applied to the image on the profile page of the entry.
The crop applied to the grid images, like I mentioned is -> the image will be scaled down using the smaller dimension and then the larger dimension will be cropped based center of the image.
re: I also tried to upload smaller size images and the problem is not solved.
Uploading smaller will not change anything because the image would have to be scaled up instead so you would end up being blurry.
re: Do you know what could be the problem?
Yes, I see you’re uploading logos… those will not generally look good because of how the image is scaled and cropped because logo are never “square” (for a lack of a better term). The crop mode on the grid images is designed to be a good fit for profile pictures of people which is why the images are scaled to fit and cropped based on the image center this is because that is where faces generally are in profile shots.
What you need is the images to be simply scaled to fit the size adding a border as needed. The only way to do this would be to edit the
card.php
found here:../wp-content/plugins/connections-gridder/
Change this:
<?php $entry->getImage( array( 'image' => $atts['image'], 'height' => $atts['image_height'], 'width' => $atts['image_width'], 'fallback' => array( 'type' => 'block', 'string' => '' ), 'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(), ) ); ?>
to this:
<?php $entry->getImage( array( 'image' => $atts['image'], 'height' => $atts['image_height'], 'width' => $atts['image_width'], 'fallback' => array( 'type' => 'block', 'string' => '' ), 'zc' => 2, 'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(), ) ); ?>
That crop mode will be better suited for logos.
Hope that helps!
01/25/2016 at 1:12 am #362327Alfonso Ballesteros
ParticipantThat worked! Thank you
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.