Support » Plugin: EWWW Image Optimizer » How to disable the creation of thumbnails to files specified by mask

  • Resolved SCREENEK

    (@screenek)


    There are a lot of images on the site, but there is a need to turn off the creation of mini thumbnails if the image contains the following words, how can this be done?

    Words:
    post
    screenshot
    og

    Example:
    dungeons-post.jpg
    worldofwarcraft-screenshot-1.jpg
    counter-strike-og.jpg (Image for opengraph)

Viewing 1 replies (of 1 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    That cannot be done with this plugin (or any other that I’m aware of). You could, however, look at the code used for disabling thumbnails in EWWW IO and write your own exclusions: notably, the ewww_image_optimizer_image_sizes_advanced() function that hooks onto the intermediate_image_sizes_advanced filter in common.php.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.