• Resolved pixtweaks

    (@pixtweaks)


    Hi,
    I found many error warnings related to image optimization. It’s trying to optimize YouTube thumbnails.
    Can you make sure that only local images are optimized? Thank you!

    Regards,
    Jaro

    getimagesize(https://img.youtube.com/vi/OI-lkB-lRbA?t=16/0.jpg): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    /wp-content/plugins/litespeed-cache/src/media.cls.php:801
    #1 /wp-content/plugins/litespeed-cache/src/media.cls.php(801): getimagesize()
    #2 /wp-content/plugins/litespeed-cache/src/media.cls.php(748): LiteSpeed\Media->_detect_dimensions()
    #3 /wp-content/plugins/litespeed-cache/src/media.cls.php(541): LiteSpeed\Media->_parse_img()
    #4 /wp-content/plugins/litespeed-cache/src/media.cls.php(493): LiteSpeed\Media->_finalize()
Viewing 1 replies (of 1 total)
  • Plugin Support litetim

    (@litetim)

    Hello @pixtweaks

    We have a filter you can add to ignore external images. Add this code to current theme or in a custom plugin:
    add_filter('litespeed_media_ignore_remote_missing_sizes', '__return_true');

    Please keep me up to date if this works for you

    • This reply was modified 1 year, 4 months ago by litetim.
Viewing 1 replies (of 1 total)

The topic ‘Optimize only local images’ is closed to new replies.