-
AuthorPosts
-
July 23, 2021 at 3:43 pm #1311922
Hi there,
we have a current problem with an image which gets resized automatically.
On this page:Once you open up “Sophienklinik” and click on the image, you will see the resized image (https://www.econsor.de/wp-content/uploads/2017/10/2021-05-28-macbook-mockup-sophienklinik-4-1030×636.png) even though we’ve uploaded a bigger one (https://www.econsor.de/wp-content/uploads/2017/10/2021-05-28-macbook-mockup-sophienklinik-4.png).
What are we doing wrong?
Thanks in advance!
July 26, 2021 at 11:59 am #1312398Hey emilconsor,
Thank you for the inquiry.
By default, the lightbox is set to use the large thumbnail, which has a maximum width of 1024px. You can adjust its size in the Settings > Media panel.
Best regards,
IsmaelAugust 2, 2021 at 5:07 pm #1313964Hi Ismael,
thanks, that did the trick for the lightbox. Now we have got another problem tho, as you can see here:
(Link 1)
The image now gets cropped within the carousel.Is there a way to resize the image within the carousel instead of cropping it?
Regards
- This reply was modified 3 years, 4 months ago by emilconsor.
August 5, 2021 at 11:10 am #1314613Hi,
Thank you for following up.
Are you referring to the slider images in the portfolio preview? We should be able to use the “avf_ajax_preview_image_size” filter to adjust the default thumbnail in the slider.
add_filter("avf_ajax_preview_image_size", function($size) { $size = "full"; return $size; }, 10, 1);
Best regards,
IsmaelAugust 6, 2021 at 1:27 pm #1314852Hi Ismael,
thanks! That worked.
Regards
August 7, 2021 at 6:30 am #1314981Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonAugust 9, 2021 at 10:55 am #1315817Hi,
I still need help – we want the lightbox images to have fullsize once clicked on the preview.
I’ve searched for that and found some snippets to add to the functions.php, but that doesnt work:add_filter( 'avf_avia_builder_masonry_lightbox_img_size', 'enfold_customization_change_popup_size' ); function enfold_customization_change_popup_size( $size ) { return 'full'; }
as well as
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
and
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){ $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
Are these deprecated or why aren’t they working?
Regards- This reply was modified 3 years, 4 months ago by emilconsor. Reason: Specification
August 10, 2021 at 8:06 am #1315979Hi,
Are you referring to the slider in the portfolio preview? It seems to be displaying the original version of the image (see private field). Please provide a screenshot so that we can see the issue.
Best regards,
IsmaelAugust 10, 2021 at 8:51 am #1315992Hi,
I am referring to the image you see when you click on a preview image in the portfolio preview/slider. It does only display the original if the uploaded image is under 1300, if it’s bigger it’s getting cropped.
This image for example (Link 1) will show up if you click on the image in the slider, but we want the full sized image to be displayed, which would be (Link 2).
See Link 3 for the case I am referring to.
- This reply was modified 3 years, 4 months ago by emilconsor. Reason: Added screenshot
August 11, 2021 at 7:38 am #1316208Hi,
Thank you for the clarification.
You can use the following filter to change the default size of the lightbox thumbnail in the slider.
add_filter("avf_alb_lightbox_image_size", function($size, $context) { if($context = "avia_slideshow") { $size = "full"; } return $size; }, 10, 2);
The filter is declared in the enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php file.
Best regards,
IsmaelAugust 11, 2021 at 4:42 pm #1316293Hi Ismael,
yes! That’s it. Thank you a lot!
August 13, 2021 at 6:34 am #1316540 -
AuthorPosts
- The topic ‘Image resizes automatically on portfolio grid’ is closed to new replies.