Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1384601

    JohannesVogt
    Participant

    Hi,

    I recently found out that X-Theme is creating lots of image thumbnails of my pictures. The problem is that some of them are even bigger than my original pictures because it even creates copies of the images which have bigger dimensions than my originals.
    This really slows down my site. I hope you can help me.

    Best regards,

    Joe

    #1384753

    JohannesVogt
    Participant

    So here is what I found out so far:

    I’ve already tried the following solution:

    stop x from generating different Images sizes

    This works so far. But as soon as I put my images in an envira gallery it starts to create all those images in different sizes again. I’ve already asked the envira support and they told me that envira gallery does not generate any images at all and everything is created by the theme.
    So it seems as if x-theme starts to create all those images when I put them in an envira gallery.

    #1384757

    JohannesVogt
    Participant
    This reply has been marked as private.
    #1385092

    Rad
    Moderator

    Hi there,

    The thread you followed was from 2014.

    X theme doesn’t generate thumbnails, it’s WordPress. And WordPress can’t generate images larger than your originally uploaded image. Example, if you upload a 600px image, then it can’t be an 800px.

    And X theme has only 4 registered sizes, and here is the code

        add_image_size( 'entry',                   x_post_thumbnail_width(),      9999,                                   false );
        add_image_size( 'entry-cropped',           x_post_thumbnail_width(),      x_post_thumbnail_cropped_height(),      true  );
        add_image_size( 'entry-fullwidth',         x_post_thumbnail_width_full(), 9999,                                   false );
        add_image_size( 'entry-cropped-fullwidth', x_post_thumbnail_width_full(), x_post_thumbnail_cropped_height_full(), true  );

    And not all of them is loaded or pulled, example, if your setting is full-width, then it will only pull images for full-width images, same goes for cropped images. Please also note that other plugins could register their own image sizes too. X theme and plugins could only register their preferred image sizes, and it’s WordPress that generates them.

    Images could only increase your site’s disk usage, but disk usage doesn’t contribute to performance that much. Unless if your disk is full. Images will only affect your site’s loading performance IF they are loaded at the same time.

    Even if you remove those image sizes, it doesn’t give you much boost in performance, it still almost the same (but yes, could increase your disk size). Example, let’s say you upload a 1200px image with the size of 500kb, and the generated image is 900px which became 300kb. If you remove the size then it will just reset back to 1200px/500kb. That didn’t improve the loading speed (it adds more 200kb), just made it worst. But yes, less 300kb in disk size since it’s removed.

    1. If you’re worried about the loading speed then you don’t have to worry about those generated images. They are generated so WordPress, theme, plugins, could selectively choose the appropriate image to display. WordPress, theme, plugins will not load them all at the same time, only when needed.
    2. If you’re worried about your disk size then yes, remove those image sizes. You’ll have to do custom development to remove them.

    Hope this helps 🙂

    #1385308

    JohannesVogt
    Participant

    I think I’ll have to get in contact with envira again. This plugin seems to generate the images, and they are definitely larger than my originals. For I example I upload images with 900×600 and google page insights shows me that the page speed is slow because 1280×960 images are loaded. I meanwhile suppose this has something to do with scaling and cropping the images down to 640×480 and then doubling the size for retina. I thought you might know this problem because envira is encluded as an official X-Addon.

    #1385589

    Rad
    Moderator

    Hi there,

    We’re not sure about that, we could only forward bugs and issues to plugin’s author. And we have no full understanding how their core works, nor control on how they should do it.

    I don’t see any issues with image generation in my installation in relation to Envira.

    Thanks!