Support » Fixing WordPress » WP duplicated images different sizes

  • Resolved Trible

    (@trible)


    Why does WordPress create duplicate images larger in file size then the original image?

    Can the duplicated images that are NOT needed for any post or page be safely deleted so that a website will load faster?

    Your answers to these 2 questions are very important to me, as I make sure to use a theme that optimizes the images I upload (and I compress them BEFORE uploading), and yet, I am forever having to download and compress the unused images that WordPress creates.

    I would GLADLY delete these… but why is there no option provided to STOP WordPress from doing this if users have no need of the resizing within WordPress?

    Thank you in advance,
    Trish

    • This topic was modified 5 months, 1 week ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    WordPress does this to serve responsive images, meaning that mobile devices don’t have to download the full desktop version of the image for example.

    The resulting size of the images though depends on the settings for your server’s imagick or gd image libraries. As you probably know from working with image editors, saving something at 100% will often produce a file size larger than the original, for example.

    To disable that system entirely, use this plugin: https://wordpress.org/plugins/disable-responsive-images-complete/

    @macmanx Hey James,

    Is there no option for me simply add a check mark to a box within WordPress to do this?

    If not, will the powers that be, be adding this option in an update?

    Reason I’m asking you these questions is that I am trying to remove the need of plugins, not add to them. 🙁

    As it is now, WordPress has forced me to have to add a plugin to simply be able to use their Classic Editor. That I find most inconvenient and not very thoughtful of those who are tweaking WordPress. Each update is supposed to make WP better. Instead, they are making it worse in a lot of cases.

    Here’s a good example of why I asked my original question: https://whychoosehealth.com/wp-content/uploads/2020/02/Example-of-WP-image-issue.png

    As long as I can simply delete EVERY copy that WordPress creates (accessing my site using FTP, of course) and NOT create any problems when sharing posts on social media or having the posts viewed in mobile devices, then it would be so much simpler to simply delete these nuisance copies.

    I have been downloading every folder and manually compressing these images and then uploading them all again. They will STILL be a burden to my website loading speed, but not nearly as bad as before compressing them.

    Example: the image that WordPress created in my example… the last one is 1,319 KB, yet my original is only 212 KB… PLUS, when I compressed WP’s copy, it is now at 136 KB.

    So, if those copied images are all that important to have, then why is WP not compressing their own copies… OR providing users with an option to NOT have copies created in the first place.

    This is what I am totally confused about.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    if those copied images are all that important to have, then why is WP not compressing their own copies

    As I mentioned in my original reply, the compression rate is up to the settings of the server’s imagick or gd image library.

    As you probably know from working with image editors, saving something at 100% will often produce a file size larger than the original, for example.

    So, it sounds like maybe the compression rate set in your server’s imagick or gd image library is set to 100%, probably by someone who doesn’t know that 100% is not 1:1 result, or someone who doesn’t know that it’s an option.

    OR providing users with an option to NOT have copies created in the first place.

    If WordPress had an option for everything that can be done via functions and filters, it would probably take a few days just to toggle settings.

    That’s what we consider the realm of plugins, and that’s why I recommended https://wordpress.org/plugins/disable-responsive-images-complete/ which was specifically developed to do exactly what you’re looking for.

    @macmanx Hey James,

    I do appreciate your suggestion regarding using a plugin but, as I mentioned, my site is already well over what I would deem acceptable plugin usage.

    If anything, I’d like to be able to reduce even more plugin that I’m presently using… and believe me, the theme I’m using already saves me from having to use 5 common plugins.

    Will let tech support know of the servers imagick setting. Thank YOU for repeating that so that I ‘get it’ this time around.

    Appreciate your patience with me.

    Thanks,
    Trish

    @macmanx Hey James,

    Look what WordPress is doing to several of my images: https://whychoosehealth.com/wp-content/uploads/2020/02/several_just_like_this_have_been_found.jpg

    This I had to create as a copy as NO server likes the originals that WP is creating like this.

    This image is easily the 20th image I have found going over EVERY image for the past 3 years on this one website. So… not only is WP creating WAY larger files than the original images uploaded, but also defective images that NO browser or server can even open. They cannot be added as attachments… notta’.

    Go figure!

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I have already explained why this is happening, and how it can be addressed, either in the server configuration or via the plugin.

    I have no other solution for you.

    Trible

    (@trible)

    @macmanx Thank YOU for trying James, I really do appreciate your effort and your shared knowledge.

    In continuing to search for an answer to my question yesterday, I FINALLY found the perfect solution provided by this post: https://webcusp.com/solved-wordpress-is-bugging-me-creating-so-many-image-sizes-of-a-single-images/

    Feel free to share the tips provided by the author. And again, thank YOU for helping me as you sincerely did.

    Mucho’ appreciated,
    Trish

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