• dmayman

    (@dmayman)


    Hi there,

    I’m having a strange issue that might be PHP related. Here’s my code to add additional image sizes, placed in my functions.php:

    add_theme_support( 'post-thumbnails' );
    
       add_image_size( "P", 9999, 960);
       add_image_size( "XS", 768, 9999);
       add_image_size( "SM", 980, 1200);
       add_image_size( "MD", 1400, 9999);
       add_image_size( "LG", 2000, 9999);
       add_image_size( "ZOOM", 2400, 9999);

    The strange thing is, the P, MD, LG, and ZOOM images sizes are all maxing out once they hit a 1140px width. For example:

    image1.jpg is originally 4186px by 1897px. When I upload it, I get the following values:

    P: 1140 by 516
    XS: 768 x 348
    SM: 980 x 444
    MD: 1140 x 516
    LG: 1140 x 516
    ZOOM: 1140 x 516

    Once the width should be over 1140, it caps out at 1140.

    Any idea what’s going on here?

  • The topic ‘add_image_size() maxing out at 1140px wide’ is closed to new replies.