[Smush Pro] Smushing images caused a resize

I’ve ran Bulk Smush and some images got resized on my site. After disabling all plugins the issue persists. Can you help?

  • Kasia Swiderska
    • Support nomad

    Hello Hayley ,

    I’m sorry about this issue.

    I have applied a fix for Smush that was causing issued with image sized when CDN was enabled. In core/modules/class-cdn.php on line 669 replace if ( is_array( $size ) && $size[0] > $content_width ) { with if ( is_array( $size ) && $size[0] < $content_width ) {
    I’ve tested this fix and 3 tall images are not changing size anymore. This fix is added in the new version of Smush.

    As for the picture in the sidebar – I have checked it and it doesn’t look like this image can’t be exact 300x300px square.
    I restored that image from before smushing, disabled Smush and then tried to regenerate and result for the 300×300 thumbnail size would be the same:
    [attachments are only viewable by logged-in members]
    And that image is this size also on FTP:
    [attachments are only viewable by logged-in members]

    There are other sizes for this image, that are square: 290x290px and 400×400 – are you sure those images were not used there before?

    For now I have disabled CDN – can you enable it and see if all images are displaying correctly?

    kind regards,
    Kasia