Support » Plugin: Smush - Compress, Optimize and Lazy Load Images » Bulk smush doesn’t compress original files

  • Resolved pepe80

    (@pepe80)


    image.jpg size: 1920x1280px

    Before bulk smush (default settings):

    file | size | changed
    image.jpg | 320 KiB | 2019-03-21 09:49:18
    image-1200×800.jpg | 103 KiB | 2019-03-21 09:49:18
    image-1024×683.jpg | 84 575 B | 2019-03-21 09:49:18

    After bulk smush:

    file | size | changed
    image.jpg | 320 KiB | 2019-03-21 09:49:18 <— why doesn’t change?
    image-1200×800.jpg | 97 215 B | 2020-01-10 08:00:39
    image-1024×683.jpg | 76 737 B | 2020-01-10 08:00:40

    There is a problem with every original file in the upload directory. If I put files in a separate directory and choose ‘compress directory’ option then the compression works fine.

    WordPress 4.9.13
    Smush 3.3.2

    • This topic was modified 2 months, 4 weeks ago by pepe80.
    • This topic was modified 2 months, 4 weeks ago by pepe80.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @pepe80,

    I trust you’re doing well!

    The image.jpg is an original uploaded image. As stated in the plugin’s description, lite version of the Smush plugin is not optimizing original images, only thumbnails that are created by WordPress.

    Original images can be optimized with the premium version of the Smush plugin.

    Let us know if you have any further questions.

    Kind regards,
    Nastia

    This used to work and remove the original image. This this change with WP Version 5.3?

    When I uploaded a 6MB file it smushed it.
    Now I get
    filename.jpg (6MB)
    filename-scaled.jpg (700kb) 2560×1920
    filename-900×675.jpg … and so on.

    what is with this new filename-scaled.jpg file? this was never there before V5.3 and before it removed the 6MB version of the file. There is no smushing
    I think the way it worked.
    It replaced the filename.jpg with 2560×1920 Version and removed the 6MB file

    What changed with your new version?

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @mbeerli ,

    WordPress 5.3 introduces a change that doesn’t allow access to original files anymore. This is described here https://make.wordpress.org/core/2019/10/09/introducing-handling-of-big-images-in-wordpress-5-3/

    We are aware that this is not something users of Smush are happy about so Smush team is working on a way to make it work as it was before WP 5.3

    kind regards,
    Kasia

    This filename-scaled.jpg is creating a major issue for us. Do to the size of several of our sites and new images are always beiing added, it is blowing out of control.
    We hope that resolving this is a high prioeity. We know that WPMU did not create this mess.

    Will be monitoring this forum for updates
    Love Smush

    has this been resolved with the latest V3.6.1 today?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @mbeerli,

    The scaling is controlled by the big_image_size_threshold filter. Returning false from the filter callback will disable it.

    add_filter( 'big_image_size_threshold', '__return_false' );

    Best regards,
    Anton

    Where do I add this ? Are you making this an option in your plugin?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @mbeerli,

    You can add it in the functions.php file of your theme. There hasn’t been a decision yet on if this should be part of Smush or not. In my personal opinion, this is not a recommended option for the majority of users.

    Best regards,
    Anton

    Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @pepe80

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

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