X Theme Generated Images

X Theme appears to be generating images in addition to the original images I upload. Would you please explain what each generated image size is used for in the website. For example: is one of those generated images created for the recent posts elements?

Once I know which images are actually being used in my website layout, I’d like to disable some of the other generated images. How can I disable them?

Reason I ask is because over time the images take up a lot of disk space. Thank You.

Hi there,

Thanks for writing in.

All themes and plugins could register their own image size, and based on that size, Wordpress itself will generate the images. So when the theme and plugin call that image based on image size name, then Wordpress will then pick up that specific image with selected size.

Generated images may only increase the disk usage but it has no effect on site’s performance since the image are only loaded upon call.

The theme has few image sizes that were registered, removing it is not recommended and may have no big effect in decreasing image size. That’s because there are other plugins too, and there are built-in image sizes within Wordpress too. The solution would be is uploading smaller images, that’s because images are only generated if the uploaded image is bigger than registered image sizes.

Thanks!

Our website will have tons of images and our host only allows for so much disk space. From my experience, I’ve seen 6 to 9 new images generated when I upload a web optimized image sized 1200 x 628. That’s even after i set wordpress default image generations to zero. Over a year those generated images add up to a lot of disk space used.

Okay, here is what I see that is being generated I think by X Theme.

post-thumbnail (Additional, 100x9999 pixel, no crop)
entry (Additional, 1073x9999 pixel, no crop)
entry-cropped (Additional, 1073x600 pixel, crop)
entry-fullwidth (Additional, 1500x9999 pixel, no crop)
entry-cropped-fullwidth (Additional, 1500x838 pixel, crop)

Where in the website are each of those being used? We turned off the automatic image that would show in posts. Is that image related to all of those entry-generated images?

post-thumbnail, I assume that one is shown in recent posts?

Hello There,

All of these were being used in the theme. In the featured image depending on the site layout whether fullwidth or not. If you want to remove these images sizes, you can insert the following code in your child theme’s functions.php file

// Remove X Image Sizes
// =============================================================================
add_action('wp', 'remove_x_image_sizes');
function remove_x_image_sizes() {
  remove_image_size('post-thumbnails');
  remove_image_size('entry');
  remove_image_size('entry-cropped');
  remove_image_size('entry-fullwidth');
  remove_image_size('entry-cropped-fullwidth');
}
// =============================================================================

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.