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).
The following images are used for this test.
apple_trans.gif
(json)
(verbose)
circle_trans.png
(json)
(verbose)
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
kodim04.png&nc&w=300&h=300&fill-to-fit
(json)
(verbose)
kodim04.png&nc&w=200&h=400&fill-to-fit
(json)
(verbose)
kodim04.png&nc&w=300&h=300&fill-to-fit=ff0000
(json)
(verbose)
kodim04.png&nc&w=200&h=400&fill-to-fit=ff0000
(json)
(verbose)
kodim04.png&nc&w=300&h=300&fill-to-fit=ff00003f
(json)
(verbose)
kodim04.png&nc&w=200&h=400&fill-to-fit=ff00003f
(json)
(verbose)
kodim04.png&nc&w=200&h=400&fill-to-fit&bgc=ff0000
(json)
(verbose)
kodim04.png&nc&w=300&h=300&fill-to-fit&bgc=ff00003f
(json)
(verbose)
kodim04.png&nc&w=300&h=300&ra=45
(json)
(verbose)
kodim04.png&nc&w=300&h=300&ra=45&bgc=ff0000
(json)
(verbose)
kodim04.png&nc&w=300&h=300&ra=45&bgc=ff00003f
(json)
(verbose)
apple_trans.gif
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&fill-to-fit
(json)
(verbose)
apple_trans.gif&nc&w=200&h=400&fill-to-fit
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&fill-to-fit=ff0000
(json)
(verbose)
apple_trans.gif&nc&w=200&h=400&fill-to-fit=ff0000
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&fill-to-fit=ff00003f
(json)
(verbose)
apple_trans.gif&nc&w=200&h=400&fill-to-fit=ff00003f
(json)
(verbose)
apple_trans.gif&nc&w=200&h=400&fill-to-fit&bgc=ff0000
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&fill-to-fit&bgc=ff00003f
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&ra=45
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&ra=45&bgc=ff0000
(json)
(verbose)
apple_trans.gif&nc&w=300&h=300&ra=45&bgc=ff00003f
(json)
(verbose)
circle_trans.png
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&fill-to-fit
(json)
(verbose)
circle_trans.png&nc&w=200&h=400&fill-to-fit
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&fill-to-fit=ff0000
(json)
(verbose)
circle_trans.png&nc&w=200&h=400&fill-to-fit=ff0000
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&fill-to-fit=ff00003f
(json)
(verbose)
circle_trans.png&nc&w=200&h=400&fill-to-fit=ff00003f
(json)
(verbose)
circle_trans.png&nc&w=200&h=400&fill-to-fit&bgc=ff0000
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&fill-to-fit&bgc=ff00003f
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&ra=45
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&ra=45&bgc=ff0000
(json)
(verbose)
circle_trans.png&nc&w=300&h=300&ra=45&bgc=ff00003f
(json)
(verbose)