Support » Plugin: Smush - Optimize, Compress and Lazy Load Images » Some images are left out …

  • Resolved metalsoft

    (@metalsoft)


    Hello,

    I have this weird problem i hope you can help me with.
    I have some image sizes defined in my theme. But some of my images have smaller width or heights after being cropped to the defined image sizes.
    Now, this makes a problem with WP Smush. since this image sizes have different names than the images sizes defined by the theme, WP Smush just skips over them and they don’t get optimized.

    for example:
    in my theme i have:
    add_image_size( ‘thumb-lg’, 750, 430, array( ‘center’, ‘center’ ) );

    My actual image size is:
    900x405px

    I end up with an image with this size:
    750x405px

    Wich isn’t picked up by WP Smush Since this is not a defined image size.

    What do you suggest?

Viewing 1 replies (of 1 total)
  • Thread Starter metalsoft

    (@metalsoft)

    Turned out I was wrong.
    I was seeing that no matter what I do, these images aren’t getting smaller and I thought well, what I described above must be the culprit. But it wasn’t.
    The problem was a small piece of code that I have previously added to my website to set the jpeg quality at 100!
    Anyway, All is good now 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Some images are left out …’ is closed to new replies.