Allow a worker to specify the needed size of the image
Just like the max_size parameter of Element.open_image
, we may wish to have a specific resizing done to the image. Some machine learning models want square images so max_size
is not enough in this case (square images break aspect ratios).
In the same vein, we could also want a different image format (keeping jpg
as default).