Testing option no-upscale

Do not upscale image when original image (slice) is smaller than target image.

Images used in test

The following images are used for this test.

car.png (json) (verbose)







Testcases used for each image

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

For each image, apply all testcases

1. Using source image car.png

car.png (json) (verbose)




Testcase 1.1: &w=600

car.png&w=600 (json) (verbose)




Testcase 1.2: &w=600&no-upscale

car.png&w=600&no-upscale (json) (verbose)




Testcase 1.3: &h=400

car.png&h=400 (json) (verbose)




Testcase 1.4: &h=400&no-upscale

car.png&h=400&no-upscale (json) (verbose)




Testcase 1.5: &w=600&h=400

car.png&w=600&h=400 (json) (verbose)




Testcase 1.6: &w=600&h=400&no-upscale

car.png&w=600&h=400&no-upscale (json) (verbose)




Testcase 1.7: &w=700&h=400&stretch

car.png&w=700&h=400&stretch (json) (verbose)




Testcase 1.8: &w=700&h=400&no-upscale&stretch

car.png&w=700&h=400&no-upscale&stretch (json) (verbose)




Testcase 1.9: &w=700&h=200&stretch

car.png&w=700&h=200&stretch (json) (verbose)




Testcase 1.10: &w=700&h=200&no-upscale&stretch

car.png&w=700&h=200&no-upscale&stretch (json) (verbose)




Testcase 1.11: &w=300&h=400&stretch

car.png&w=300&h=400&stretch (json) (verbose)




Testcase 1.12: &w=300&h=400&no-upscale&stretch

car.png&w=300&h=400&no-upscale&stretch (json) (verbose)




Testcase 1.13: &w=600&h=400&crop-to-fit

car.png&w=600&h=400&crop-to-fit (json) (verbose)




Testcase 1.14: &w=600&h=400&no-upscale&crop-to-fit

car.png&w=600&h=400&no-upscale&crop-to-fit (json) (verbose)




Testcase 1.15: &w=600&h=200&crop-to-fit

car.png&w=600&h=200&crop-to-fit (json) (verbose)




Testcase 1.16: &w=600&h=200&no-upscale&crop-to-fit

car.png&w=600&h=200&no-upscale&crop-to-fit (json) (verbose)




Testcase 1.17: &w=300&h=400&crop-to-fit

car.png&w=300&h=400&crop-to-fit (json) (verbose)




Testcase 1.18: &w=300&h=400&no-upscale&crop-to-fit

car.png&w=300&h=400&no-upscale&crop-to-fit (json) (verbose)




Testcase 1.19: &w=600&h=400&fill-to-fit

car.png&w=600&h=400&fill-to-fit (json) (verbose)




Testcase 1.20: &w=600&h=400&no-upscale&fill-to-fit

car.png&w=600&h=400&no-upscale&fill-to-fit (json) (verbose)