Question about add_image_size()

First, let’s check the behavior of cropping. According to code reference:

  1. If false (default), images will be scaled, not cropped.

    1. If an array in the form of array( x_crop_position, y_crop_position ):

      • x_crop_position accepts left, center, or right.
      • y_crop_position accepts top, center, or bottom. Images will be cropped to the specified dimensions within the defined crop
        area.
    2. If true, images will be cropped to the specified dimensions using
      center positions.

So, here’s what’s gonna happen when you set the dimensions to 1920×1080 and then upload an image:

  • If both width and height of the image are larger, the image will be cropped as 1920/1080 (Or 16/9) by its center and then resized to 1920×1080.
  • If one of the image’s dimensions are larger than 1920 or 1080, then the larger side will be cropped to match the appropriate side, and the other side will be untouched.
  • If none of the sides are larger than 1920 or 1080, no thumbnail will be generated.