• Hi,
    I have a question: I am using all different sizes and formats of images on my site, some are square, some 16:6, some 4:3 etc…all different widths and heights as well. Is it advisable to set different media sizes (instead of the default WP ones under media settings) and if yes, what do you chooose of all your images are different? I worry a bit about all the different images that WP is creating and thus performance decreasing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I worry a bit about all the different images that WP is creating and thus performance decreasing.

    Where is the performance decreasing? The whole point of having multiple versions of the image is to improve performance.

    The defaults for media sizes are just some numbers. You can change them at any time, but they only affect images uploaded after the change. (unless you regenerate thumbnails)
    You should set them according to what is most common for your images. Only the sizes smaller than the original are used for that image.
    Some themes add more image sizes and don’t even use the ones already created. If that’s a problem, use a theme that uses the existing sizes. (I wrote a theme that way. I don’t know why they aren’t all that way.)

    Thread Starter dammsugare

    (@dammsugare)

    Well if there are multiple images created for each image, this can add up immensely if you already have a lot of images on your site.

    I know the defaults can be changed, but I am not sure what they should be changed to if almost every image has a different format…

    What is adding up?

    I suggest you use sizes that are the most common for your site. If you don’t know, just use the sizes your theme defines. That way you will have fewer versions of each image.

    There is a core ticket for removing the media medium and large size options altogether.
    https://core.trac.wordpress.org/ticket/44441

    Thread Starter dammsugare

    (@dammsugare)

    The images in the uploads folder are adding up…if for every image about 4-6 other sizes are created, then the folder is quickly becoming huge…

    My theme does not seem to add any other sizes, just Woocommerce is adding some. What would you recommend I set the largest media size to if my container max-width is 1500px, but I do have a few fullscreen images on my front page, meaning they are always 100vw, regardless of the screen width?

    You should set them according to what is most common for your images. Only the sizes smaller than the original are used for that image.

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