When using the --image=xx flag within the pokemon command, the check for a valid size happens too late in the pipeline.
Meaning that the image is downloaded first before the size is checked. Moving the sizeMap map to the beginning of the function will validate the size first before downloading the image.
When using the
--image=xxflag within thepokemoncommand, the check for a valid size happens too late in the pipeline.Meaning that the image is downloaded first before the size is checked. Moving the
sizeMapmap to the beginning of the function will validate the size first before downloading the image.