Title: add_image_size
Published: April 25, 2014
Last modified: August 20, 2026

---

# add_image_size( string $name, int $width, int $height, bool|array $crop = false )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#more-information)
    - [Reserved Image Size Names](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#reserved-image-size-names)
    - [Crop Mode](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#crop-mode)
    - [Using the New Image Sizes](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#using-the-new-image-sizes)
    - [For Media Library Images (Admin)](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#for-media-library-images-admin)
    - [For General Media (PHP/Templates)](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#for-general-media-php-templates)
    - [Other Notes:](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#other-notes)
 * [Source](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#user-contributed-notes)

Registers a new image size.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#parameters)󠁿

 `$name`stringrequired

Image size identifier.

`$width`intoptional

Image width in pixels. Default 0.

`$height`intoptional

Image height in pixels. Default 0.

`$crop`bool|arrayoptional

Image cropping behavior. If false, the image will be scaled (default).
 If true,
image will be cropped to the specified dimensions using center positions. If an 
array, the image will be cropped using the array to specify the crop location:

 * `0` string
 * The x crop position. Accepts `'left'`, `'center'`, or `'right'`.
 * `1` string
 * The y crop position. Accepts `'top'`, `'center'`, or `'bottom'`.

Default:`false`

## 󠀁[More Information](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#more-information)󠁿

### 󠀁[Reserved Image Size Names](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#reserved-image-size-names)󠁿

These are the reserved image size names recognized by WordPress: ‘thumb’, ‘thumbnail’,‘
medium’, ‘medium_large’, ‘large’, and ‘post-thumbnail’.

The names “thumb” & “thumbnail” are just aliases- they are exactly the same.

For a detailed explanation and “why”, read further inside the [image_downsize()](https://developer.wordpress.org/reference/functions/image_downsize/)
article.

However, if needed, you can always set the options yourself:

    ```php
    update_option( 'thumbnail_size_w', 160 );
    update_option( 'thumbnail_size_h', 160 );
    update_option( 'thumbnail_crop', 1 );
    ```

---

### 󠀁[Crop Mode](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#crop-mode)󠁿

**Set the image size by resizing the image proportionally (without distorting it):**

    ```php
    add_image_size( 'custom-size', 220, 180 ); // 220 pixels wide by 180 pixels tall, soft proportional crop mode
    ```

**Set the image size by cropping the image (not showing part of it):**

    ```php
    add_image_size( 'custom-size', 220, 180, true ); // 220 pixels wide by 180 pixels tall, hard crop mode
    ```

**Set the image size by cropping the image and defining a crop position:**

    ```php
    add_image_size( 'custom-size', 220, 220, array( 'left', 'top' ) ); // Hard crop left top
    ```

**When setting a crop position, the first value in the array is the x axis crop 
position, the second is the y axis crop position.**

 * x_crop_position accepts ‘left’ ‘center’, or ‘right’.
 * y_crop_position accepts ‘top’, ‘center’, or ‘bottom’.

By default, these values default to ‘center’ when using hard crop mode.

You can find examples of the various crop types [here](https://havecamerawilltravel.com/photographer/wordpress-thumbnail-crop).

---

### 󠀁[Using the New Image Sizes](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#using-the-new-image-sizes)󠁿

Now that you’ve defined some custom image sizes, there are a variety of ways that
you can use them.
 For Featured Images

To use your custom image sizes for a post’s featured image, you can use [the_post_thumbnail()](https://developer.wordpress.org/reference/functions/the_post_thumbnail/)
in the appropriate theme template file…

Note: To enable featured images the current theme must include add_theme_support(‘
post-thumbnails’ ); in its functions.php file. See also Post Thumbnails.

    ```php
    if ( has_post_thumbnail() ) {
    the_post_thumbnail( 'your-custom-size' );
    }
    ```

---

### 󠀁[For Media Library Images (Admin)](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#for-media-library-images-admin)󠁿

You can also make your custom sizes selectable from your WordPress admin. To do 
so, you have to use the image_size_names_choose hook to assign them a normal, human-
readable name…

    ```php
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );

    function my_custom_sizes( $sizes ) {
    return array_merge( $sizes, array(
    'your-custom-size' => __( 'Your Custom Size Name' ),
    ) );
    }
    ```

---

### 󠀁[For General Media (PHP/Templates)](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#for-general-media-php-templates)󠁿

You can output images (by size) directly from the WordPress Media Library using 
PHP as well. To do this, simply use [wp_get_attachment_image()](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/).

    ```php
    // Assuming your Media Library image has a post id of 42...
    echo wp_get_attachment_image( 42, 'your-custom-size' );
    ```

Note: If you just want the image URL instead of a pre-built  tag, you can use [wp_get_attachment_image_src()](https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/)
instead.

---

### 󠀁[Other Notes:](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#other-notes)󠁿

Using the ‘false’ setting will fail to produce a new image in the upload directory
if one of the image dimensions of the uploaded image are equal to the new image 
size.

If a registered image size is removed from functions.php, then any image uploaded
before that point and then deleted from the media library afterwards, does not have
those auto-generated sizes deleted too. Only image sizes that exist in functions.
php are deleted.

Although height and width are not required parameters, their default values (0) 
will lead to unwanted behavior, so bear in mind that you should always define them.
Use a value of 9999 to define the other dimension as the one to be considered when
image resize is executed.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#source)󠁿

    ```php
    function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
    	global $_wp_additional_image_sizes;

    	$_wp_additional_image_sizes[ $name ] = array(
    		'width'  => absint( $width ),
    		'height' => absint( $height ),
    		'crop'   => $crop,
    	);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/media.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/media.php#L312)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/media.php#L312-L320)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#related)󠁿

| Uses | Description | 
| [absint()](https://developer.wordpress.org/reference/functions/absint/)`wp-includes/load.php` |

Converts a value to non-negative integer.

  |

| Used by | Description | 
| [_wp_add_additional_image_sizes()](https://developer.wordpress.org/reference/functions/_wp_add_additional_image_sizes/)`wp-includes/media.php` |

Adds additional default image sub-sizes.

  | 
| [set_post_thumbnail_size()](https://developer.wordpress.org/reference/functions/set_post_thumbnail_size/)`wp-includes/media.php` |

Registers an image size for the post thumbnail.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 14 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-296)
 2.    [Codex](https://profiles.wordpress.org/codex/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-296)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-296)
     Vote results for this note: 48[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-296)
 4.  In a theme’s `functions.php` file. Always use the “after_setup_theme” action hook.
 5.      ```php
         add_action( 'after_setup_theme', 'wpdocs_theme_setup' );
         function wpdocs_theme_setup() {
         	add_image_size( 'category-thumb', 300 ); // 300 pixels wide (and unlimited height)
         	add_image_size( 'homepage-thumb', 220, 180, true ); // (cropped)
         }
         ```
     
 6.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D296%23feedback-editor-296)
 7.   [Skip to note 15 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-1694)
 8.    [Ian Dunn](https://profiles.wordpress.org/iandunn/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-1694)
 9.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1694)
     Vote results for this note: 25[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1694)
 10. In addition to the Regenerate Thumbnails plugins, there’s also a WP-CLI command:`
     wp media regenerate`. See [https://wp-cli.org/commands/media/regenerate/](https://wp-cli.org/commands/media/regenerate/)
     or `wp help regenerate media` for details.
 11.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D1694%23feedback-editor-1694)
 12.  [Skip to note 16 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-1560)
 13.   [Jensdiep](https://profiles.wordpress.org/jensdiep/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-1560)
 14. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1560)
     Vote results for this note: 15[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1560)
 15. After you have add new sizes WordPress has to regenerate the images.
 16. Best plugin to do that: [https://wordpress.org/plugins/regenerate-thumbnails/](https://wordpress.org/plugins/regenerate-thumbnails/)
 17.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D1560%23feedback-editor-1560)
 18.  [Skip to note 17 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-1395)
 19.   [rtpHarry](https://profiles.wordpress.org/rtpharry/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-1395)
 20. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1395)
     Vote results for this note: 13[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1395)
 21. The section “Reserved Image Size Names” hints at it but doesn’t explicitly point
     out that you can also customise the medium and large sizes via code by using these
     option names:
 22.  `medium_size_h`: The medium size height.
      `medium_size_w`: The medium size width.`
     large_size_h`: The large size height. `large_size_w`: The large size width.
 23. So for example, to set the large height to 700px you would use this code:
 24.     ```php
            update_option( 'large_size_h', 700 );
         ```
     
 25.  * This is helpful automation, but be careful to only call this in one-off hooks(
        e.g. [after_switch_theme](https://developer.wordpress.org/reference/hooks/after_switch_theme/))
        because each call triggers an UPDATE to the DB each time.
      * [jeffjack](https://profiles.wordpress.org/jeffjack/) [8 years ago](https://developer.wordpress.org/reference/functions/add_image_size/#comment-2937)
 26.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D1395%23feedback-editor-1395)
 27.  [Skip to note 18 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-1712)
 28.   [pixeline](https://profiles.wordpress.org/pixeline/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-1712)
 29. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1712)
     Vote results for this note: 10[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1712)
 30. Note that along `thumbnail`, `medium`, `large`, there is also a size built into
     wordpress that you can use : `full` to get the image at its original dimensions.
 31.  * AFAIK, if you request an unregistered or unavailable image size, the original
        full size image is returned. So, it’s not so much you’ve requested full. It’s
        that full will return the full, provided there’s not a registered image size
        named full.
      * [ChiefAlchemist](https://profiles.wordpress.org/chiefalchemist/) [8 years ago](https://developer.wordpress.org/reference/functions/add_image_size/#comment-2935)
 32.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D1712%23feedback-editor-1712)
 33.  [Skip to note 19 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-1644)
 34.   [Anthony Hortin](https://profiles.wordpress.org/ahortin/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-1644)
 35. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1644)
     Vote results for this note: 9[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-1644)
 36. Related
 37. [remove_image_size()](https://developer.wordpress.org/reference/functions/remove_image_size/)
     
     [has_post_thumbnail()](https://developer.wordpress.org/reference/functions/has_post_thumbnail/)
     [the_post_thumbnail()](https://developer.wordpress.org/reference/functions/the_post_thumbnail/)
     [get_post_thumbnail_id()](https://developer.wordpress.org/reference/functions/get_post_thumbnail_id/)
     [get_the_post_thumbnail()](https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/)
     [set_post_thumbnail_size()](https://developer.wordpress.org/reference/functions/set_post_thumbnail_size/)
 38.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D1644%23feedback-editor-1644)
 39.  [Skip to note 20 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-3564)
 40.   [Ivijan-Stefan Stipic](https://profiles.wordpress.org/ivijanstefan/)  [  7 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-3564)
 41. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-3564)
     Vote results for this note: 4[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-3564)
 42. NOTE THIS:
 43. If `add_image_size()` still doesn’t work even after regenerating thumbnails, make
     sure that `add_theme_support( 'post-thumbnails' )` is loaded before `add_image_size()`
 44. Example:
 45.     ```php
         function wpse_setup_theme() {
            add_theme_support( 'post-thumbnails' );
            add_image_size( 'team-thumb', 60, 60, true );
         }
     
         add_action( 'after_setup_theme', 'wpse_setup_theme' );
         ```
     
 46.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D3564%23feedback-editor-3564)
 47.  [Skip to note 21 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-827)
 48.   [hongpong](https://profiles.wordpress.org/hongpong/)  [  11 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-827)
 49. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-827)
     Vote results for this note: 3[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-827)
 50. If you upload an image whose dimensions match the `add_image_size()` when crop
     is set to `true`, in the `$meta` object accessed by the `wp_generate_attachment_metadata`
     filter, that matching image size will _not_ be available. Also, image sizes that
     have larger dimensions than an uploaded photo will not be available either.
 51. (Thus if you are using a technique to create something like a monochrome derivative
     image, you won’t be able to get it to work if the uploaded image is exactly the
     same size as the image size you’re using for your black and white version).
 52.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D827%23feedback-editor-827)
 53.  [Skip to note 22 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-3765)
 54.   [Marc Bernard](https://profiles.wordpress.org/luxxor/)  [  7 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-3765)
 55. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-3765)
     Vote results for this note: 3[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-3765)
 56. Default settings for image size (see /wp-admin/includes/schema.php):
 57. `
      'thumbnail_size_w' => 150, 'thumbnail_size_h' => 150, 'medium_size_w' => 300,'
     medium_size_h' => 300, 'medium_large_size_w' => 768, 'medium_large_size_h' => 
     0, 'large_size_w' => 1024, 'large_size_h' => 1024,
 58. You can change these option values in WordPress > Admin > Settings > Media (/wp-
     admin/options-media.php).
 59. Use `get_intermediate_image_sizes()` to get the current settings for predefined
     as well as custom image sizes.
 60.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D3765%23feedback-editor-3765)
 61.  [Skip to note 23 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-5074)
 62.   [slingshotdesign](https://profiles.wordpress.org/slingshotdesign/)  [  5 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-5074)
 63. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-5074)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-5074)
 64. Note that if you would like your custom image sizes to be available in the admin,
     for example when choosing an image size for the Media & Text block, use the filter:
     [image_size_names_choose](https://developer.wordpress.org/reference/hooks/image_size_names_choose/)
 65. Example:
 66.     ```php
         add_filter( 'image_size_names_choose', 'my_custom_sizes' );
     
         function my_custom_sizes( $sizes ) {
             return array_merge( $sizes, array(
                 'square_medium' => __( 'Square Medium' ),
                 'square_large' => __( 'Square Large' ),
             ) );
         }
         ```
     
 67.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D5074%23feedback-editor-5074)
 68.  [Skip to note 24 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-5522)
 69.   [Lovro Hrust](https://profiles.wordpress.org/lovor/)  [  5 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-5522)
 70. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-5522)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-5522)
 71. Since _WordPress 5.3_, two additional image sizes are added:
      **1536×1536** **
     2048×2048** These are also their names. For additional information, check wp-includes/
     media.php
 72.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D5522%23feedback-editor-5522)
 73.  [Skip to note 25 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-4979)
 74.   [dejudicibus](https://profiles.wordpress.org/dejudicibus/)  [  6 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-4979)
 75. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-4979)
     Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-4979)
 76. Let us suppose that a master theme set in functions.php a size, let us say ‘a_size’.
     and that the functions.php in a child theme uses again this function to add the
     same size but with different value. It is not clear from this page if the old 
     size is changed or the call is ignored or forbidden.
 77.  * I’m facing a similar situation – a plugin that defines the default sizes of
        an image in a custom GB block but then I might want to change these sizes on
        different sites (of a multisite) within their themes. I presume that using 
        the same name for the image size will lead to overwriting the values. Am I 
        correct?
      * [crs1138](https://profiles.wordpress.org/crs1138/) [5 years ago](https://developer.wordpress.org/reference/functions/add_image_size/#comment-5813)
 78.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D4979%23feedback-editor-4979)
 79.  [Skip to note 26 content](https://developer.wordpress.org/reference/functions/add_image_size/?output_format=md#comment-content-2297)
 80.   [Diana Thompson](https://profiles.wordpress.org/likethegoddess/)  [  9 years ago  ](https://developer.wordpress.org/reference/functions/add_image_size/#comment-2297)
 81. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-2297)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%23comment-2297)
 82. The cropping behavior cited as 2) in Description, [https://developer.wordpress.org/reference/functions/add_image_size/#description](https://developer.wordpress.org/reference/functions/add_image_size/#description),
     is *not* currently supported. Please see the ticket at [https://core.trac.wordpress.org/ticket/40370](https://core.trac.wordpress.org/ticket/40370)
     for more information.
 83.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F%3Freplytocom%3D2297%23feedback-editor-2297)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fadd_image_size%2F)
before being able to contribute a note or feedback.