Do not upscale image when original image (slice) is smaller than target image.
The following images are used for this test.
The following testcases are used for each image.
&w=600
&w=600&no-upscale
&h=400
&h=400&no-upscale
&w=600&h=400
&w=600&h=400&no-upscale
&w=700&h=400&stretch
&w=700&h=400&no-upscale&stretch
&w=700&h=200&stretch
&w=700&h=200&no-upscale&stretch
&w=300&h=400&stretch
&w=300&h=400&no-upscale&stretch
&w=600&h=400&crop-to-fit
&w=600&h=400&no-upscale&crop-to-fit
&w=600&h=200&crop-to-fit
&w=600&h=200&no-upscale&crop-to-fit
&w=300&h=400&crop-to-fit
&w=300&h=400&no-upscale&crop-to-fit
&w=600&h=400&fill-to-fit
&w=600&h=400&no-upscale&fill-to-fit
car.png&w=600
(json)
(verbose)
car.png&w=600&no-upscale
(json)
(verbose)
car.png&h=400
(json)
(verbose)
car.png&h=400&no-upscale
(json)
(verbose)
car.png&w=600&h=400
(json)
(verbose)
car.png&w=600&h=400&no-upscale
(json)
(verbose)
car.png&w=700&h=400&stretch
(json)
(verbose)
car.png&w=700&h=400&no-upscale&stretch
(json)
(verbose)
car.png&w=700&h=200&stretch
(json)
(verbose)
car.png&w=700&h=200&no-upscale&stretch
(json)
(verbose)
car.png&w=300&h=400&stretch
(json)
(verbose)
car.png&w=300&h=400&no-upscale&stretch
(json)
(verbose)
car.png&w=600&h=400&crop-to-fit
(json)
(verbose)
car.png&w=600&h=400&no-upscale&crop-to-fit
(json)
(verbose)
car.png&w=600&h=200&crop-to-fit
(json)
(verbose)
car.png&w=600&h=200&no-upscale&crop-to-fit
(json)
(verbose)
car.png&w=300&h=400&crop-to-fit
(json)
(verbose)
car.png&w=300&h=400&no-upscale&crop-to-fit
(json)
(verbose)
car.png&w=600&h=400&fill-to-fit
(json)
(verbose)