Deactivate Smush and restore original images

I have website on which the colors of the images changes when the ran through Smush. How do I unsmush them and restore the original ones.

  • Adam Czajczyk
    • Support Gorilla

    Hello Nathan da Silva

    I hope you're well today and thank you for reaching out to us.

    I've checked the chat and I saw examples of those images with distorted colors but I must say that I wasn't able to achieve the same result with Smush in any way. I used one of the images given as example there and tried multiple times to Smush it with different settings of the plugin but nothing like that happened.

    I'm slightly stuck with this, I admit, since you have restored the site and removed Smush. That's of course perfectly understandable course of action but it also makes it difficult to find out what has happened. That being said, I'd like to ask you if you could set up a staging site for us.

    Such site should be an exact copy of your production site, on the very same server. Provided with full access to that site we could then safely (without affecting your live site) do all the test that we'd need to find out what is causing the issue and how to fix this.

    Would that be possible? If yes, I'd need full access credentials to that staging site so could you provide me with those after the site is created, please?

    Note: Don't leave your login details in this ticket.
    Instead, you can send us your details using our contact form https://premium.wpmudev.org/contact/#i-have-a-different-question and the template below:

    Subject: "Attn: Adam Czajczyk"
    - Site login URL
    - WordPress admin username
    - WordPress admin password
    - FTP credentials (host/username/password)
    - cPanel credentials (host/username/password)
    - Folder path to site in question
    - Link back to this thread for reference
    - Any other relevant urls/info

    Kind regards,
    Adam

  • Silva Web Designs
    • New Recruit

    Hi Adam,

    Thank you for your response, I did read this but after talking to your support team, I was informed what was the issue with the loss of quality.

    This was because the client was taking screenshots of images and saving the image from the original photos.

    By taking screenshots, this was re-saving the image in a different format with different settings which was causing the issue.

    After further investigating the issue I found out through your tech chat support that there was too much compression occurring on the images, since I am using WP Smush PRO using 2x compression, this was too much compression that was being used on their particular images...

    A strange problem that I came across and it is the first time I came across this.

    This has now been resolved by:-

    - Running compression without x2 Super Smush
    - Re-uploading the original photos without the screen shot process
    - I believe I also turned off PNG to JPG as well to keep the original PNG images that were being converted.

    As instructed, Regenerate Thumbnails was ran on the media library to get the original files back as I forgot to save the 'original images'.

    They also had an issue with images that were being used on the archive page, since these were 'smaller images', the quality of the images was being reduced on retina screens...

    I realised I was using 'medium_large' thumbnail on this particular page.

    I changed this to the following code:-

    <?php $thumb_size = 'medium_large'; ?>
    <img class="img-locations d-block mx-auto img-fluid" src="<?php echo get_the_post_thumbnail_url('', $full); ?>" alt="<?php the_title(); ?>">

    from 'Medium'

    See the following sizes available from the WordPress Codex:-

    the_post_thumbnail_url();                  // without parameter -> 'post-thumbnail'
    
    the_post_thumbnail_url( 'thumbnail' );       // Thumbnail (default 150px x 150px max)
    the_post_thumbnail_url( 'medium' );          // Medium resolution (default 300px x 300px max)
    the_post_thumbnail_url( 'large' );           // Large resolution (default 640px x 640px max)
    the_post_thumbnail_url( 'full' );            // Full resolution (original size uploaded)

    https://codex.wordpress.org/Function_Reference/the_post_thumbnail_url

    Thanks for all the support WPMU, there was a few involved in getting the solution in the end, but we got there!

    Thanks again..

    & moving forward, I hope this helps someone else that experiences the same issue as I've received.

    Resolved

    Nathan @SilvaWebDesigns
    https://silvawebdesigns.com

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.