Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1359512

    Hi
    If you click this link, for example :

    …. you can see that the image on the product page ilooks nice and sharp…but if you click on the image to “open” it, it looks blurry

    (it’s like that with all my images)

    I can’t work out why this would be.

    The image is 2048 x 1280, 72dpi and is nice and sharp when you open it in the WordPress media gallery

    https://madaboutmara.com/wp-content/uploads/2022/07/Low-res-72dpi-2288.jpg

    How can I get it sharp in Woocommerce ?

    Thanks

    Ivan

    #1359518

    Hey ivanglaser,

    Thank you for the inquiry.

    Are you using any kind of image optimization or compression plugin? It seems to be resizing the lightbox thumbnail based on a specific URL parameter or query. (see private field)

    Try to add this code in the functions.php file to adjust the default lightbox thumbnail size.

    add_filter('avf_avia_builder_helper_lightbox_size', function($size) {
       return 'full';
    }, 10, 1);
    

    Best regards,
    Ismael

    #1359556

    Hi
    I added this code some weeks ago (I think I found it on this Enfold support site) because in my masonry gallery the images were not displaying properly on large screens.
    That issue is fixed now with this code :

    /* Lightbox image size */

    add_filter( ‘avf_avia_builder_masonry_lightbox_img_size’, ‘enfold_customization_change_popup_size’ );
    function enfold_customization_change_popup_size( $size ) {
    return ‘fullsize’;
    }

    Is your suggested code similar ? can I rtun both these bits of code ?

    Tx

    Ivan

    #1359558

    FYI, I added your auggested code and that has fixed my problem. Thank you !
    It does not seem to have broken the other code as my masonry gallery still works

    So I assume it’s OK to leave them both in the functions.php file….right ?

    Thanks again
    Ivan

    #1359569

    Hi,

    Thanks for the update. If everything works as expected, then please leave the code as it is. If you should have any further problems on the topic, then please let us know here.

    Best regards,
    Rikard

    #1359623

    Thank you

    #1359652

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.