Testing issue 52 - Fill to fit fails with aspect ratio

Verify that Fill To Fit resize strategy works with all variants of sizes.

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.

&nc&w=300&h=300&crop-to-fit
&nc&w=300&ar=1.1&crop-to-fit
&nc&w=300&ar=3&crop-to-fit
&nc&h=300&ar=1.1&crop-to-fit
&nc&h=300&ar=3&crop-to-fit
&nc&w=50%&ar=1.1&crop-to-fit
&nc&w=50%&ar=3&crop-to-fit
&nc&h=50%&ar=1.1&crop-to-fit
&nc&h=50%&ar=3&crop-to-fit

For each image, apply all testcases

1. Using source image car.png

car.png (json) (verbose)




Testcase 1.1: &nc&w=300&h=300&crop-to-fit

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




Testcase 1.2: &nc&w=300&ar=1.1&crop-to-fit

car.png&nc&w=300&ar=1.1&crop-to-fit (json) (verbose)




Testcase 1.3: &nc&w=300&ar=3&crop-to-fit

car.png&nc&w=300&ar=3&crop-to-fit (json) (verbose)




Testcase 1.4: &nc&h=300&ar=1.1&crop-to-fit

car.png&nc&h=300&ar=1.1&crop-to-fit (json) (verbose)




Testcase 1.5: &nc&h=300&ar=3&crop-to-fit

car.png&nc&h=300&ar=3&crop-to-fit (json) (verbose)




Testcase 1.6: &nc&w=50%&ar=1.1&crop-to-fit

car.png&nc&w=50%&ar=1.1&crop-to-fit (json) (verbose)




Testcase 1.7: &nc&w=50%&ar=3&crop-to-fit

car.png&nc&w=50%&ar=3&crop-to-fit (json) (verbose)




Testcase 1.8: &nc&h=50%&ar=1.1&crop-to-fit

car.png&nc&h=50%&ar=1.1&crop-to-fit (json) (verbose)




Testcase 1.9: &nc&h=50%&ar=3&crop-to-fit

car.png&nc&h=50%&ar=3&crop-to-fit (json) (verbose)