Resize the image such that its smallest side is size
.
This operation combined with a center crop or a random area crop is the
backbone of many image pipelines.
- Parameters:
key (str) – The sample key that contains the array we are operating on.
size (int) – The size of the smallest side of the result.
output_key (str) – If it is not empty then write the result to this
key instead of overwriting key
. (default: ‘’)