• Resolved Lyk

    (@lyk-1)


    The following change seems to override the default functionality and make the plugin to always smush the original too.

    Is that correct? Are there any potential problems with that?

    if ( $size_key == 'large' ) {
         $smush_full = false;
    }

    To:

    if ( $size_key == 'large' ) {
         $smush_full = true;
    }

    Thanks!

    https://www.ads-software.com/plugins/wp-smushit/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @lyk,

    That was kept intentionally, because if for some reason, you want to get the original images back, which were smushed, you can just regenerate thumbnails, and it’ll re create the sizes from the full image.

    Also full image is mostly for keeping the original image intact, and it is quite big in size, also if Large image size is available it becomes more sensible to use the large size to have lesser page load time.

    Another reason to ignore full size is the 1Mb size limit, so if the full image is greater than 1Mb, it’ll be skipped from smushing because of the limits on free version.

    But still if you really want to smush the full size, you have already modified the plugin ??

    Although we’ll have a discussion and might add a filter to switch it on and off, if it is really important ??

    Cheers

    Thread Starter Lyk

    (@lyk-1)

    Hi Umesh,

    Thank for your reply.

    I just wanted to verify that there are no hidden reasons etc, since I am new to wordpress and -to be honest- I did not thoroughly check all the code of the plugin.

    A switch would sure be nice. ??

    The main reason would be something along the following cases:
    a) The owner/user uploads images that are already web-ready, i.e. they will never upload a 10mb image.
    b) One uses a plugin like imsanity, so the original/full image will be at a usable size.

    My case was initially a, but then I switched to b since it was easier for the users of the blog. So now, the full size is the one used in the posts, since it is basically the same size as a proper large would have been.

    Thanks and cheers,
    Lyk

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Small change in order to always smush full sized images’ is closed to new replies.