• Resolved lavinya

    (@lavinya)


    First of all, thank you for the ewww plugin. After I installed this plugin on my website, the following dimensions occurred every time I uploaded a photo. Also, I made the settings in the wp administration panel as follows.

    https://i.ibb.co/GPnS7nj/wpadminmedia.jpg

    Then I added the code below because I don’t want 1024×576 1536×864 2048×1152 photos of this type.

    my theme functions.php:
    
    ...
    
    add_image_size( 'medium_large', '640', '0', false );
    add_image_size( 'wordpress-releated', '195', '111', true );
    add_image_size( '1280px', '1280', '0', false );
    }
    add_action( 'init', 'j0e_remove_large_image_sizes' );
    function j0e_remove_large_image_sizes() {
      remove_image_size( '1536x1536' );             
      remove_image_size( '2048x2048' );             
    }

    Then I deleted 1024×576 1536×864 2048×1152 files of this size manually from ftp.

    I then deleted the ewww plugin completely.
    Then I reinstalled the ewww plugin.
    I then optimized all images, regenerated thumbnails etc. (it took about 1 hour)
    I then cleared both Cloudflare caches and all caches on my website several times.
    I then cleared the browser cache as well.
    Currently, the screen settings on the ewww panel are as follows:

    https://i.ibb.co/qyHdGmq/ewwwset.jpg

    However, the problem is that; The old photo sizes are still visible in the html code as below. when I click on the dimensions I removed it gives 404 error code, but they still appear in the html code.

    srcset="
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-195x111.jpg 195w,
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-320x180.jpg 320w, 
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-640x360.jpg 640w,
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-831x467.jpg 831w,
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-1024x576.jpg 1024w"
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-1536x864.jpg 1536w,
    ../uploads/2022/01/a78049-sararmis-yapraklar-20211104_143032-2048x1152.jpg 2048w,

    These are the ones that come to my mind, dear friends, thank you in advance for your help and I wish you a good work. With love..

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi Lavinya,
    So, not really something that our plugin is doing, but more an issue with how WordPress and your theme are handling your images.
    That having been said, the image sizes that you are seeing, I don’t see that you excluded them in your function that you added. For example, you excluded 1536×1536 but the one showing up is 1536×864. Are there other add_image_size rules in your functions.php? Have you tried regenerating thumbnails? Is something in your theme adding other sizes?

    Thread Starter lavinya

    (@lavinya)

    Hello Dear adamewww. Thanks for quick reply.
    I checked all functions.php. Just the ones in the photo below.
    https://i.ibb.co/qyHdGmq/ewwwset.jpg

    A photo size that wordpress creates by default from 1536×1536 to 2048×2048. I wanted to disable it. However, if the width of the image is 1536, wordpress automatically adjusts the height. I checked my own theme, it doesn’t have any rendering code. I regenerated the thumbnails with the plugin here https://www.ads-software.com/plugins/regenerate-thumbnails/. Then I optimized again from this address /wp-admin/upload.php?page=ewww-image-optimizer-bulk. Then I deleted all the caches. However, inactive photos like 1536x still appear in the html code. Clicking it gives 404.

    Again regarding this problem, I tried to run the _wp_attachment_metadata code at this address https://isabelcastillo.com/cleanup-attachment-metadata. But the code didn’t work. The code didn’t give any errors either. ??

    As far as I understand, _wp_attachment_metadata has not been updated despite all that I have done, the _wp_attachment_metadata part of wordpress is still showing the photo dimensions that I removed in the html code.

    Thank you for your help.

    Plugin Support adamewww

    (@adamewww)

    Are you using a page builder? It’s possible that those are hardcoded in as part of a page builder or something. The HTML isn’t being dynamically generated, so the srcset must be stuck in there some how (and really it shouldn’t be). Can you view the HTML source in the editor specifically (Edit as HTML)? If the srcset is in there, there’s nothing you can do other than manually remove them so that WordPress can add them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Old photo sizes’ is closed to new replies.