• Resolved ctullo

    (@ctullo)


    Hi so, basically this guy hired me to work on his site, speed it up. I looked around on the site, and there are like 40-50 image sizes of EACH uploaded image, in the uploads directory, and this guy is a wedding photographer so he uploads a lot of images to begin with. His site is 12 gb at this point, because of all of these images.

    There was already a Regenerate Thumbnails plugin installed on the site when I inherited it. I am somewhat familiar with this plugin- when I go in the plugin though there’s like 45 different image sizes listed, and most start with the name of the theme being used:

    Thumbnail Sizes
    These are all of the thumbnail sizes that are currently registered:

    thumbnail: 150×150 pixels (cropped to fit)
    medium: 300×300 pixels (proportionally resized to fit inside dimensions)
    medium_large: 768×0 pixels (proportionally resized to fit inside dimensions)
    large: 1024×1024 pixels (proportionally resized to fit inside dimensions)
    1536×1536: 1536×1536 pixels (proportionally resized to fit inside dimensions)
    2048×2048: 2048×2048 pixels (proportionally resized to fit inside dimensions)
    post-thumbnail: 80×75 pixels (cropped to fit)
    werkstatt-square: 160×150 pixels (cropped to fit)
    werkstatt-slider: 1600×900 pixels (cropped to fit)
    werkstatt-blog: 320×200 pixels (cropped to fit)
    werkstatt-bloglarge: 640×320 pixels (cropped to fit)
    werkstatt-masonry: 640×9999 pixels (proportionally resized to fit inside dimensions)
    werkstatt-squarelarge: 380×350 pixels (cropped to fit)
    werkstatt-rectangle: 320×240 pixels (cropped to fit)
    werkstatt-tall: 380×700 pixels (cropped to fit)
    werkstatt-wide: 760×350 pixels (cropped to fit)
    werkstatt-square-small: 80×300 pixels (cropped to fit)
    werkstatt-square-2x: 320×300 pixels (cropped to fit)
    werkstatt-square-3x: 480×450 pixels (cropped to fit)
    werkstatt-square-mini: 20×18 pixels (cropped to fit)
    werkstatt-slider-small: 800×1800 pixels (cropped to fit)
    werkstatt-slider-2x: 3200×1800 pixels (cropped to fit)
    werkstatt-slider-3x: 4800×2700 pixels (cropped to fit)
    werkstatt-slider-mini: 20×11 pixels (cropped to fit)
    werkstatt-blog-small: 160×400 pixels (cropped to fit)
    werkstatt-blog-2x: 640×400 pixels (cropped to fit)
    werkstatt-blog-3x: 960×600 pixels (cropped to fit)
    werkstatt-blog-mini: 20×12 pixels (cropped to fit)
    werkstatt-bloglarge-small: 320×640 pixels (cropped to fit)
    werkstatt-bloglarge-2x: 1280×640 pixels (cropped to fit)
    werkstatt-bloglarge-3x: 1920×960 pixels (cropped to fit)
    werkstatt-bloglarge-mini: 20×10 pixels (cropped to fit)
    werkstatt-masonry-small: 320×9999 pixels (proportionally resized to fit inside dimensions)
    werkstatt-masonry-2x: 1280×9999 pixels (proportionally resized to fit inside dimensions)
    werkstatt-masonry-3x: 1920×9999 pixels (proportionally resized to fit inside dimensions)
    werkstatt-masonry-mini: 20×9999 pixels (proportionally resized to fit inside dimensions)
    werkstatt-squarelarge-small: 190×700 pixels (cropped to fit)
    werkstatt-squarelarge-2x: 760×700 pixels (cropped to fit)
    werkstatt-squarelarge-3x: 1140×1050 pixels (cropped to fit)
    werkstatt-squarelarge-mini: 20×18 pixels (cropped to fit)
    werkstatt-rectangle-small: 160×480 pixels (cropped to fit)
    werkstatt-rectangle-2x: 640×480 pixels (cropped to fit)
    werkstatt-rectangle-3x: 960×720 pixels (cropped to fit)
    werkstatt-rectangle-mini: 20×15 pixels (cropped to fit)
    werkstatt-tall-small: 190×1400 pixels (cropped to fit)
    werkstatt-tall-2x: 760×1400 pixels (cropped to fit)
    werkstatt-tall-3x: 1140×2100 pixels (cropped to fit)
    werkstatt-tall-mini: 20×36 pixels (cropped to fit)
    werkstatt-wide-small: 380×700 pixels (cropped to fit)
    werkstatt-wide-2x: 1520×700 pixels (cropped to fit)
    werkstatt-wide-3x: 2280×1050 pixels (cropped to fit)
    werkstatt-wide-mini: 20×9 pixels (cropped to fit)

    My question is, should I assume all of these sizes are vital to the website? Can a theme really require that many image sizes? Is it normal to require this many, or is the theme made lousy? I would like to clean out some of the unused sizes if possible, but I;m afraid of creating broken image links on the site.

    Thanks for any insight!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like the theme has registered lots of different thumbnail sizes. It usually does this when it provides functionality that requires certain sizes of images. Some may not be necessary, but you’ll have to check what features of the theme are used on the site before removing them.

    You can look at where the theme is registering these sizes for clues (search for calls to the add_image_size function).

    To remove the sizes, you can either:

    – Add an action after the theme adds its sizes and then use remove_image_size() to remove the custom sizes;
    – Hook into the intermediate_image_sizes filter.

    Once you do this, you can run regenerate thumbnails with the Delete thumbnail files for old unregistered sizes... option to delete the previously generated images.

    Jake

    Marking as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What does this list of image sizes mean?’ is closed to new replies.