[Resolved] Images widths

Home Forums Support Images widths

This topic contains 8 replies, has 2 voices, and was last updated by  David 3 days, 8 hours ago.

Viewing 9 posts - 1 through 9 (of 9 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 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 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 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 Customer Support
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.