Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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!

    #1312398

    Hey 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,
    Ismael

    #1313964

    Hi 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.
    #1314613

    Hi,

    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,
    Ismael

    #1314852

    Hi Ismael,

    thanks! That worked.

    Regards

    #1314981

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1315817

    Hi,

    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
    #1315979

    Hi,

    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,
    Ismael

    #1315992

    Hi,

    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
    #1316208

    Hi,

    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,
    Ismael

    #1316293

    Hi Ismael,

    yes! That’s it. Thank you a lot!

    #1316540

    Hi,

    No problem. Glad we could help. Please feel free to open another should you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Image resizes automatically on portfolio grid’ is closed to new replies.