Site logo

Archived topic

Images widths

10 replies · Started by Kim on September 9, 2019

Viewing posts 1–11 of 11

Hi, I have some basic question concerning images:

1. Should I change the image sizes within the Wordpress Media Settings (they are set to the default ones at the moment)? If yes to what sizes?
2. What should be the maximum width for Hero Images at upload?

Many thanks in advance!

Hi there,

these are the basic rules i generally apply:

1. Original Image should be large enough for Hero Images:
Full Width then 1920px usually suffices as it covers the largest commonly used device screen.
Contained Width then use the Container Width set in the Customizer.

2. Large size
For a 1200px container then 1200px will do.
If the site uses side bars throughout of 25% that leaves the content at 800px. So 800px will do.

3. Medium size
Generally used in Columns, Blog grid. So divide up your container by the commonly used number of columns.
e.g 1200px site, 3 columns on desktop. So 400px covers it. It also covers the larger size mobiles when the columns stack.
On tablet the columns also stack to 1 column so thats around 768px, which will be covered by the Large size of 800px.

4. Thumbnail - generally leave this as 150px.

Awesome :-) Thanks!

Hi David, sorry to bother you again. If I use sidebars only in the blog with a 1200px container, should I set large media to 800px or 1200px then?

BR!

Yes you can. The issue that creates is on your pages where you may have a 1200px wide image it will use the original full size image. But you can add new media sizes.

Add this PHP snippet:

add_action( 'after_setup_theme', function() {
    add_image_size( 'container-width', 1200 );
} );

And then use the Regenerate Thumbnails plugin to update any existing media. It will now add a new size so example:

Original: 1920px
Container Width: 1200px
Large: 800px
Medium: 400px

Hi David,

thanks a lot. Super helpful :-)

Do you have any recommendations for Woocommerce images?

Based on the 1200px example:

Thumbs: 400px - good for 3 column desktop and 1 column mobile.
Main: 600 - 800px - based upon Product Image Area Width set in the Customizer, default is 50% ( 600px )
Original: Double whatever main is if you want x2 zoom in your gallery ligthbox.

Main thing with Woo is making sure all original images have the same aspect ratio. Preferably square images.

Great! Thank you so much! :-)

Glad to be of help.

dumb question - but by 1200px - what does that mean for the media settings exactly?
1200x1200 ? As there are width and heigth to enter. This would be squared though. Or can i somehow make one value adjust in the same ratio? so e.g. a 2400x1200 becomes 1200x600 -> and not 1200x1200.

Sorry - i don't get those settings and the answer seems to be to trivial to be found in articles when i search :P

Hi there,

the sizes you define for the medium and large thumbnails are the max-height and max-width.
Unlike the Thumbnail size these DO NOT crop the image. Instead they respect the aspect ratio of your original image.

Example:
You upload an original landscape image of 2400px x 1200px
That original image has an aspect ratio of 50%.
You have set your Large image to max-width: 1200px and max-height: 1200px.
The large version of your image will be displayed as 1200px x 600px.

This archived topic is closed to new replies.