Yes there is.
You can use three methods
Filling will only work for larger sizes. Not useful for downsizing.
Resizing should be a more expensive but optimal solution for each case (up or down). It will save all values โโin a range and simply convert them to resize at a given size.
Crop or Pad will work as resizing, and it will be more efficient in terms of calculation, since there is no interpolation in this method. However, if you want to resize it to a smaller size, it will be cropped from the edges.
Using these 3, you can arrange the sizes of your layer.
source share