A helper class to register image sizes
Image sizes are register like the default function add_image_size, beside of that, the image size will be added to the dropdown selection.
$ composer require ralfhortt/wp-image-sizes
<?php
new ImageSize(string $identifier, string $label, int $width, int $height, bool $crop);
<?php
use RalfHortt\ImageSizes\ImageSize;
(new ImageSize('tiny', __('Tiny', 'TEXTDOMAIN'), 50, 50, true))->register();