• Resolved 7thmin

    (@7thmin)


    Hi there,

    I’m using Shortpixel via Autoptimise.

    For some reason, when optimizing some carousel images on the fly, the images are being resized to 75*75px. This is resulting in it cropping. Is there any way to avoid this?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO uses the width & height properties in the HTML, which for the carousel seems not to be the correct way, so you’ll have to exclude those images from optimization with this code snippet;

    add_filter('autoptimize_filter_imgopt_noptimize','imgopt_excl');
    function imgopt_excl() {return 'size-full';}

    (you might also have to add size-full to the lazyload exclusion field)

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘CDN Resizing/Cropping Image’ is closed to new replies.