Testing option crop

Cropping parts of image

Images used in test

The following images are used for this test.

kodim04.png (json) (verbose)







Testcases used for each image

The following testcases are used for each image.

&nc&w=300
&nc&w=300&crop=0,0,0,0
&nc&crop=300,200,0,0
&nc&crop=300,200,left,top
&nc&crop=300,200,right,top
&nc&crop=300,200,right,bottom
&nc&crop=300,200,left,bottom
&nc&crop=300,200,center,center
&nc&crop=200,220,190,300

For each image, apply all testcases

1. Using source image kodim04.png

kodim04.png (json) (verbose)




Testcase 1.1: &nc&w=300

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




Testcase 1.2: &nc&w=300&crop=0,0,0,0

kodim04.png&nc&w=300&crop=0,0,0,0 (json) (verbose)




Testcase 1.3: &nc&crop=300,200,0,0

kodim04.png&nc&crop=300,200,0,0 (json) (verbose)




Testcase 1.4: &nc&crop=300,200,left,top

kodim04.png&nc&crop=300,200,left,top (json) (verbose)




Testcase 1.5: &nc&crop=300,200,right,top

kodim04.png&nc&crop=300,200,right,top (json) (verbose)




Testcase 1.6: &nc&crop=300,200,right,bottom

kodim04.png&nc&crop=300,200,right,bottom (json) (verbose)




Testcase 1.7: &nc&crop=300,200,left,bottom

kodim04.png&nc&crop=300,200,left,bottom (json) (verbose)




Testcase 1.8: &nc&crop=300,200,center,center

kodim04.png&nc&crop=300,200,center,center (json) (verbose)




Testcase 1.9: &nc&crop=200,220,190,300

kodim04.png&nc&crop=200,220,190,300 (json) (verbose)