[Resolved] Images widths

Home Forums Support Images widths

  • This topic has 10 replies, 3 voices, and was last updated 9 months ago by David.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1005365
    Kim

    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!

    #1005571
    David
    Staff
    Customer Support

    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.

    #1006352
    Kim

    Awesome πŸ™‚ Thanks!

    #1006362
    Kim

    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!

    #1006549
    David
    Staff
    Customer Support

    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

    #1007269
    Kim

    Hi David,

    thanks a lot. Super helpful πŸ™‚

    Do you have any recommendations for Woocommerce images?

    #1007392
    David
    Staff
    Customer Support

    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.

    #1009106
    Kim

    Great! Thank you so much! πŸ™‚

    #1009226
    David
    Staff
    Customer Support
    #1247590
    Matthias

    dumb question – but by 1200px – what does that mean for the media settings exactly?
    1200×1200 ? 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 2400×1200 becomes 1200×600 -> and not 1200×1200.

    Sorry – i don’t get those settings and the answer seems to be to trivial to be found in articles when i search πŸ˜›

    #1247737
    David
    Staff
    Customer Support

    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.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.