Testing issue 38 - fill to fit, together with background colors

The issue was to implement fill-to-fit, but it needs some flexibility in how to choose the background color and it also affects rotation of the image (the background color does). So this testcase is both for fill-to-fit and for background color (thereby including a test using rotate).

Images used in test

The following images are used for this test.

kodim04.png (json) (verbose)




  

apple_trans.gif (json) (verbose)




  

circle_trans.png (json) (verbose)







Testcases used for each image

The following testcases are used for each image.

&nc&w=300&h=300&fill-to-fit
&nc&w=200&h=400&fill-to-fit
&nc&w=300&h=300&fill-to-fit=ff0000
&nc&w=200&h=400&fill-to-fit=ff0000
&nc&w=300&h=300&fill-to-fit=ff00003f
&nc&w=200&h=400&fill-to-fit=ff00003f
&nc&w=200&h=400&fill-to-fit&bgc=ff0000
&nc&w=300&h=300&fill-to-fit&bgc=ff00003f
&nc&w=300&h=300&ra=45
&nc&w=300&h=300&ra=45&bgc=ff0000
&nc&w=300&h=300&ra=45&bgc=ff00003f

For each image, apply all testcases

1. Using source image kodim04.png

kodim04.png (json) (verbose)




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

kodim04.png&nc&w=300&h=300&fill-to-fit (json) (verbose)




Testcase 1.2: &nc&w=200&h=400&fill-to-fit

kodim04.png&nc&w=200&h=400&fill-to-fit (json) (verbose)




Testcase 1.3: &nc&w=300&h=300&fill-to-fit=ff0000

kodim04.png&nc&w=300&h=300&fill-to-fit=ff0000 (json) (verbose)




Testcase 1.4: &nc&w=200&h=400&fill-to-fit=ff0000

kodim04.png&nc&w=200&h=400&fill-to-fit=ff0000 (json) (verbose)




Testcase 1.5: &nc&w=300&h=300&fill-to-fit=ff00003f

kodim04.png&nc&w=300&h=300&fill-to-fit=ff00003f (json) (verbose)




Testcase 1.6: &nc&w=200&h=400&fill-to-fit=ff00003f

kodim04.png&nc&w=200&h=400&fill-to-fit=ff00003f (json) (verbose)




Testcase 1.7: &nc&w=200&h=400&fill-to-fit&bgc=ff0000

kodim04.png&nc&w=200&h=400&fill-to-fit&bgc=ff0000 (json) (verbose)




Testcase 1.8: &nc&w=300&h=300&fill-to-fit&bgc=ff00003f

kodim04.png&nc&w=300&h=300&fill-to-fit&bgc=ff00003f (json) (verbose)




Testcase 1.9: &nc&w=300&h=300&ra=45

kodim04.png&nc&w=300&h=300&ra=45 (json) (verbose)




Testcase 1.10: &nc&w=300&h=300&ra=45&bgc=ff0000

kodim04.png&nc&w=300&h=300&ra=45&bgc=ff0000 (json) (verbose)




Testcase 1.11: &nc&w=300&h=300&ra=45&bgc=ff00003f

kodim04.png&nc&w=300&h=300&ra=45&bgc=ff00003f (json) (verbose)




2. Using source image apple_trans.gif

apple_trans.gif (json) (verbose)




Testcase 2.1: &nc&w=300&h=300&fill-to-fit

apple_trans.gif&nc&w=300&h=300&fill-to-fit (json) (verbose)




Testcase 2.2: &nc&w=200&h=400&fill-to-fit

apple_trans.gif&nc&w=200&h=400&fill-to-fit (json) (verbose)




Testcase 2.3: &nc&w=300&h=300&fill-to-fit=ff0000

apple_trans.gif&nc&w=300&h=300&fill-to-fit=ff0000 (json) (verbose)




Testcase 2.4: &nc&w=200&h=400&fill-to-fit=ff0000

apple_trans.gif&nc&w=200&h=400&fill-to-fit=ff0000 (json) (verbose)




Testcase 2.5: &nc&w=300&h=300&fill-to-fit=ff00003f

apple_trans.gif&nc&w=300&h=300&fill-to-fit=ff00003f (json) (verbose)




Testcase 2.6: &nc&w=200&h=400&fill-to-fit=ff00003f

apple_trans.gif&nc&w=200&h=400&fill-to-fit=ff00003f (json) (verbose)




Testcase 2.7: &nc&w=200&h=400&fill-to-fit&bgc=ff0000

apple_trans.gif&nc&w=200&h=400&fill-to-fit&bgc=ff0000 (json) (verbose)




Testcase 2.8: &nc&w=300&h=300&fill-to-fit&bgc=ff00003f

apple_trans.gif&nc&w=300&h=300&fill-to-fit&bgc=ff00003f (json) (verbose)




Testcase 2.9: &nc&w=300&h=300&ra=45

apple_trans.gif&nc&w=300&h=300&ra=45 (json) (verbose)




Testcase 2.10: &nc&w=300&h=300&ra=45&bgc=ff0000

apple_trans.gif&nc&w=300&h=300&ra=45&bgc=ff0000 (json) (verbose)




Testcase 2.11: &nc&w=300&h=300&ra=45&bgc=ff00003f

apple_trans.gif&nc&w=300&h=300&ra=45&bgc=ff00003f (json) (verbose)




3. Using source image circle_trans.png

circle_trans.png (json) (verbose)




Testcase 3.1: &nc&w=300&h=300&fill-to-fit

circle_trans.png&nc&w=300&h=300&fill-to-fit (json) (verbose)




Testcase 3.2: &nc&w=200&h=400&fill-to-fit

circle_trans.png&nc&w=200&h=400&fill-to-fit (json) (verbose)




Testcase 3.3: &nc&w=300&h=300&fill-to-fit=ff0000

circle_trans.png&nc&w=300&h=300&fill-to-fit=ff0000 (json) (verbose)




Testcase 3.4: &nc&w=200&h=400&fill-to-fit=ff0000

circle_trans.png&nc&w=200&h=400&fill-to-fit=ff0000 (json) (verbose)




Testcase 3.5: &nc&w=300&h=300&fill-to-fit=ff00003f

circle_trans.png&nc&w=300&h=300&fill-to-fit=ff00003f (json) (verbose)




Testcase 3.6: &nc&w=200&h=400&fill-to-fit=ff00003f

circle_trans.png&nc&w=200&h=400&fill-to-fit=ff00003f (json) (verbose)




Testcase 3.7: &nc&w=200&h=400&fill-to-fit&bgc=ff0000

circle_trans.png&nc&w=200&h=400&fill-to-fit&bgc=ff0000 (json) (verbose)




Testcase 3.8: &nc&w=300&h=300&fill-to-fit&bgc=ff00003f

circle_trans.png&nc&w=300&h=300&fill-to-fit&bgc=ff00003f (json) (verbose)




Testcase 3.9: &nc&w=300&h=300&ra=45

circle_trans.png&nc&w=300&h=300&ra=45 (json) (verbose)




Testcase 3.10: &nc&w=300&h=300&ra=45&bgc=ff0000

circle_trans.png&nc&w=300&h=300&ra=45&bgc=ff0000 (json) (verbose)




Testcase 3.11: &nc&w=300&h=300&ra=45&bgc=ff00003f

circle_trans.png&nc&w=300&h=300&ra=45&bgc=ff00003f (json) (verbose)